summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorjlam <jlam>2002-10-08 23:31:01 +0000
committerjlam <jlam>2002-10-08 23:31:01 +0000
commiteb05970103dd782430dc252a891afb4560f41eb8 (patch)
tree20b744fb199be4c88ce8d6f22aab6605f9bd2454 /editors
parentebf18ab779ff3abde9a6701461ecd55fa881ab5b (diff)
downloadpkgsrc-eb05970103dd782430dc252a891afb4560f41eb8.tar.gz
buildlink1 -> buildlink2
Diffstat (limited to 'editors')
-rw-r--r--editors/pico/Makefile12
-rw-r--r--editors/pico/buildlink2.mk19
2 files changed, 26 insertions, 5 deletions
diff --git a/editors/pico/Makefile b/editors/pico/Makefile
index 990d135a14a..3a1adfb3623 100644
--- a/editors/pico/Makefile
+++ b/editors/pico/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2002/07/28 05:39:40 schmonz Exp $
+# $NetBSD: Makefile,v 1.32 2002/10/08 23:31:01 jlam Exp $
#
DISTNAME= pine4.44
@@ -13,6 +13,7 @@ COMMENT= Text editor (ships with Pine), and Pine's text editing lib
LICENSE= pine-license
+USE_BUILDLINK2= # defined
USE_LIBTOOL= # defined
.include "../../mk/bsd.prefs.mk"
@@ -28,13 +29,14 @@ BUILDNAME= neb
MAKE_ENV+= _STRIPFLAG_INSTALL= # debug...
do-build:
- cd ${WRKSRC} && ./build ${BUILDNAME} CC="${LIBTOOL} ${CC}" \
- PREFIX=${PREFIX}
+ cd ${WRKSRC} && ./build ${BUILDNAME} \
+ CC="${PKGLIBTOOL} ${BUILDLINK_CC}" \
+ PREFIX=${PREFIX}
do-install:
- ${LIBTOOL} --mode=install ${INSTALL_DATA} \
+ ${PKGLIBTOOL} --mode=install ${INSTALL_DATA} \
${WRKSRC}/pico/libpico.la ${PREFIX}/lib/
- ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
+ ${PKGLIBTOOL} --mode=install ${INSTALL_PROGRAM} \
${WRKSRC}/pico/pico ${WRKSRC}/pico/pilot ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/doc/pico.1 ${PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/doc/pilot.1 ${PREFIX}/man/man1/
diff --git a/editors/pico/buildlink2.mk b/editors/pico/buildlink2.mk
new file mode 100644
index 00000000000..b7ab17e64b3
--- /dev/null
+++ b/editors/pico/buildlink2.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink2.mk,v 1.1 2002/10/08 23:31:02 jlam Exp $
+
+.if !defined(PICO_BUILDLINK2_MK)
+PICO_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= pico
+BUILDLINK_DEPENDS.pico?= pico>=4.2
+BUILDLINK_PKGSRCDIR.pico?= ../../editors/pico
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.pico=pico
+BUILDLINK_PREFIX.pico_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.pico+= include/pico/*
+BUILDLINK_FILES.pico+= lib/libpico.*
+
+BUILDLINK_TARGETS+= pico-buildlink
+
+pico-buildlink: _BUILDLINK_USE
+
+.endif # PICO_BUILDLINK2_MK