diff options
author | obache <obache@pkgsrc.org> | 2008-06-09 15:27:03 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2008-06-09 15:27:03 +0000 |
commit | 368a4ead056933777ec8aeed9e9bed2cd2f371ec (patch) | |
tree | e237be2df9ca72ff2b17a4d6eaf1c1ddedf945ec | |
parent | f3f4c752574313b73ea15a91a9690dcba84dbe3b (diff) | |
download | pkgsrc-368a4ead056933777ec8aeed9e9bed2cd2f371ec.tar.gz |
* Need pkg-config to build. Noticed by Hasso Tepper in PR 38918.
* Not using glib, but ckeck it in configure, put fake glib.pc.
* No need custom do-install target. change to normal install and post-install.
* Add DESTDIR support.
-rw-r--r-- | x11/ftmenu/Makefile | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/x11/ftmenu/Makefile b/x11/ftmenu/Makefile index 4a9f888c210..bb160981c1f 100644 --- a/x11/ftmenu/Makefile +++ b/x11/ftmenu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $ +# $NetBSD: Makefile,v 1.2 2008/06/09 15:27:03 obache Exp $ # DISTNAME= ftmenu-0.3 @@ -10,16 +10,28 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://ftmenu.sourceforge.net/ COMMENT= Fluxbox Tray Menu +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= YES USE_LANGUAGES+= c c++ - -.include "../../mk/bsd.prefs.mk" - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/ftmenu ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/ftmenu - ${INSTALL_DATA} ${WRKSRC}/img/fb.xpm ${PREFIX}/share/ftmenu/fb.xpm +USE_TOOLS+= pkg-config + +post-install: + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/ftmenu + ${INSTALL_DATA} ${WRKSRC}/img/fb.xpm ${DESTDIR}${PREFIX}/share/ftmenu/fb.xpm + +#XXX: This package not using glib, but ckeck it. +BUILDLINK_TARGETS+= glib-fake-pc + +glib-fake-pc: + ${_PKG_SILENT}${_PKG_DEBUG} \ + { ${ECHO} "Name: GLib"; \ + ${ECHO} "Description: C Utility Library"; \ + ${ECHO} "Version: 1.2.10"; \ + ${ECHO} "Libs:"; \ + ${ECHO} "Cflags:"; \ + } > ${BUILDLINK_DIR}/lib/pkgconfig/glib.pc .include "../../x11/gtk2/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |