summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2015-02-24 12:47:07 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-28 10:14:33 +0100
commite3890daf7f21f85a40547b66b9b148f99e3092eb (patch)
treefd1d869a938795e8cf82f91c19735ad735778807
parent96f7bd86abc8a6fe0d1db78d667ab140f9cd5705 (diff)
port newt library
-rw-r--r--package/newt/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/newt/Makefile b/package/newt/Makefile
new file mode 100644
index 000000000..e663ae0fa
--- /dev/null
+++ b/package/newt/Makefile
@@ -0,0 +1,33 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= newt
+PKG_VERSION:= 0.52.18
+PKG_RELEASE:= 1
+PKG_HASH:= 771b0e634ede56ae6a6acd910728bb5832ac13ddb0d1d27919d2498dab70c91e
+PKG_DESCR:= Redhat\'s Newt windowing toolkit development files
+PKG_SECTION:= libs/misc
+PKG_DEPENDS:= slang
+PKG_BUILDDEP:= slang
+PKG_URL:= https://fedorahosted.org/newt/
+PKG_SITES:= https://fedorahosted.org/releases/n/e/${PKG_NAME}/
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,NEWT,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIGURE_ARGS+= --without-python \
+ --without-tcl \
+ --without-gpm-support
+
+post-install:
+ $(INSTALL_DIR) $(IDIR_NEWT)/usr/{bin,lib}
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/whiptail \
+ $(IDIR_NEWT)/usr/bin
+ ${CP} ${WRKINST}/usr/lib/libnewt.so* \
+ ${IDIR_NEWT}/usr/lib
+
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk