From 05b7017f031a0b7ec77897d1ff4479959829076e Mon Sep 17 00:00:00 2001 From: reg Date: Thu, 5 Oct 2000 07:22:56 +0000 Subject: Implement WANT_GNOME. --- sysutils/ipsc/Makefile | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) (limited to 'sysutils/ipsc/Makefile') diff --git a/sysutils/ipsc/Makefile b/sysutils/ipsc/Makefile index 2fc1a2e..cd8ead0 100644 --- a/sysutils/ipsc/Makefile +++ b/sysutils/ipsc/Makefile @@ -9,43 +9,34 @@ PORTNAME= ipsc PORTVERSION= 0.4.2 CATEGORIES= sysutils gnome MASTER_SITES= http://ipsc.sourceforge.net/dist/ipsc/ -DISTNAME= ${PKGNAME}-src +DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= jeremy@external.org BUILD_DEPENDS= ${WRKDIRPREFIX}${PORTSDIR}/sysutils/prips/work/prips/prips.o:${PORTSDIR}/sysutils/prips:build -.if defined(WITH_GNOME) -LIB_DEPENDS= gnome.4:${PORTSDIR}/x11/gnomelibs -.endif -.if defined(WITH_GNOME) -USE_XLIB= YES -.endif WRKSRC= ${WRKDIR}/ipsc/src -post-extract: - @${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../prips/work/prips \ - ${WRKDIR}/prips +WANT_GNOME= yes -pre-build: -.if defined(WITH_GNOME) -PLIST= ${PKGDIR}/PLIST.gnome +.include + +.if defined(HAVE_GNOME) +USE_X_PREFIX= yes +USE_GNOME= yes ALL_TARGET= all .else ALL_TARGET= ipsc .endif -post-build: -.if defined(WITH_GNOME) - @${ECHO_MSG} "" - @${ECHO_MSG} "Don't forget to define WITH_GNOME when installing" - @${ECHO_MSG} "" -.endif +post-extract: + @${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../prips/work/prips \ + ${WRKDIR}/prips do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/ipsc ${PREFIX}/bin -.if defined(WITH_GNOME) - @${INSTALL_PROGRAM} ${WRKSRC}/gipsc ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/ipsc ${PREFIX}/bin +.if defined(HAVE_GNOME) + ${INSTALL_PROGRAM} ${WRKSRC}/gipsc ${PREFIX}/bin .endif -.include +.include -- cgit v1.1