diff options
Diffstat (limited to 'editors/pico/Makefile')
-rw-r--r-- | editors/pico/Makefile | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/editors/pico/Makefile b/editors/pico/Makefile index a3db611764a..4477922b786 100644 --- a/editors/pico/Makefile +++ b/editors/pico/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.71 2008/03/03 18:25:53 jlam Exp $ +# $NetBSD: Makefile,v 1.72 2008/03/04 22:00:30 jlam Exp $ # # NOTE: # When updating, it is necessary to change the shlib version, located in @@ -8,7 +8,7 @@ DISTNAME= pine4.64 PKGNAME= pico-4.10 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= editors MASTER_SITES= ftp://ftp.cac.washington.edu/pine/ \ ftp://ftp.fu-berlin.de/unix/mail/pine/ @@ -26,37 +26,38 @@ USE_LIBTOOL= yes .include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "Darwin" -BUILDNAME= osx -LIBS+= -lcurses -.elif ${OPSYS} == "IRIX" +OPSYSVARS+= BUILDNAME +BUILDNAME.Darwin= osx +.if ${OPSYS} == "IRIX" . if ${OS_VERSION} >= 6.5 -BUILDNAME= sg6 +BUILDNAME.IRIX= sg6 . else -BUILDNAME= sgi +BUILDNAME.IRIX= sgi . endif -.elif ${OPSYS} == "Interix" -BUILDNAME= sfu -.elif ${OPSYS} == "Linux" -BUILDNAME= lnx -.elif ${OPSYS} == "SunOS" -BUILDNAME= so5 -.else -BUILDNAME= neb .endif +BUILDNAME.Interix= sfu +BUILDNAME.Linux= lnx +BUILDNAME.SunOS= so5 +BUILDNAME.NetBSD= neb +BUILDNAME.*= neb + +# Let termcap.buildlink3.mk handle using the right termcap library. +SUBST_CLASSES+= tcap +SUBST_STAGE.tcap= pre-configure +SUBST_FILES.tcap= pico/makefile.* +SUBST_SED.tcap= -e "s/-lncurses//" +LIBS+= ${BUILDLINK_LDADD.termcap} MAKE_ENV+= _STRIPFLAG_INSTALL= # debug... INSTALLATION_DIRS= bin lib ${PKGMANDIR}/man1 -pre-patch: -.if ${OPSYS} == "Interix" - ${CP} -f \ - ${WRKSRC}/pico/osdep/os-sol.h ${WRKSRC}/pico/osdep/os-sfu.h +# Create the OS-dependent files for Interix from the Solaris ones. +post-extract: + ${CP} -f ${WRKSRC}/pico/osdep/os-sol.h ${WRKSRC}/pico/osdep/os-sfu.h ${SED} -e 's,read.pol,read.sel,' \ ${WRKSRC}/pico/osdep/os-sv4.ic >${WRKSRC}/pico/osdep/os-sfu.ic -.endif - ${SED} -e 's,-ltermlib,-lcurses,g;s,sv4,sfu,g' \ + ${SED} -e 's,sv4,sfu,g' \ ${WRKSRC}/pico/makefile.sv4 >${WRKSRC}/pico/makefile.sfu do-build: @@ -75,5 +76,5 @@ do-install: ${INSTALL_DATA_DIR} ${PREFIX}/include/pico cd ${WRKSRC}/pico && ${INSTALL_DATA} *.h ${DESTDIR}${PREFIX}/include/pico -.include "../../devel/ncurses/buildlink3.mk" +.include "../../mk/termcap.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |