summaryrefslogtreecommitdiff
path: root/editors/sam
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-08-25 18:38:05 +0000
committerjlam <jlam@pkgsrc.org>2002-08-25 18:38:05 +0000
commite2afa97f51a1f72e6618533019aaaae07b7d3cf2 (patch)
treed2b31bb9a6a069ebfb63079b9dddde1e6688bc4b /editors/sam
parente97ad43756dc8382d2c6cb8a7ae09be0eb540f67 (diff)
downloadpkgsrc-e2afa97f51a1f72e6618533019aaaae07b7d3cf2.tar.gz
Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk. This provides sufficient buildlink2 infrastructure to start merging other packages from the buildlink2 branch that have already been converted to use the buildlink2 framework.
Diffstat (limited to 'editors/sam')
-rw-r--r--editors/sam/Makefile5
-rw-r--r--editors/sam/buildlink2.mk23
2 files changed, 26 insertions, 2 deletions
diff --git a/editors/sam/Makefile b/editors/sam/Makefile
index 86714f168ce..2e485d5c542 100644
--- a/editors/sam/Makefile
+++ b/editors/sam/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2001/11/29 01:12:32 hubertf Exp $
+# $NetBSD: Makefile,v 1.21 2002/08/25 18:38:52 jlam Exp $
# FreeBSD Id: Makefile,v 1.3 1996/11/12 02:19:40 obrien Exp
#
@@ -18,6 +18,7 @@ WRKSRC= ${WRKDIR}
EXTRACT_CMD= ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SH}
MANCOMPRESSED= yes
+USE_BUILDLINK2= yes
USE_X11BASE= yes
MAKE_ENV+= X11PREFIX=${X11PREFIX}
@@ -31,7 +32,7 @@ OTHER_X_LIBS= -lSM -lICE
do-build:
for d in libXg libframe sam samterm; do \
- (cd ${WRKSRC}/$$d; make -f Make.solaris \
+ (cd ${WRKSRC}/$$d; ${MAKE_PROGRAM} -f Make.solaris \
OTHER_X_LIBS="${OTHER_X_LIBS}"); \
done
.endif # SunOS
diff --git a/editors/sam/buildlink2.mk b/editors/sam/buildlink2.mk
new file mode 100644
index 00000000000..bc4f7ffb9d4
--- /dev/null
+++ b/editors/sam/buildlink2.mk
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:38:53 jlam Exp $
+
+.if !defined(SAM_BUILDLINK2_MK)
+SAM_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= sam
+BUILDLINK_DEPENDS.sam?= sam>=4.3nb1
+BUILDLINK_PKGSRCDIR.sam?= ../../editors/sam
+
+# This adds a build-dependency as sam only has static libraries.
+BUILDLINK_DEPMETHOD.sam?= build
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.sam=sam
+BUILDLINK_PREFIX.sam_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.sam= include/sam/*
+BUILDLINK_FILES.sam+= lib/libXg.a
+BUILDLINK_FILES.sam+= lib/libframe.a
+
+BUILDLINK_TARGETS+= sam-buildlink
+
+sam-buildlink: _BUILDLINK_USE
+
+.endif # SAM_BUILDLINK2_MK