diff options
author | jlam <jlam@pkgsrc.org> | 2002-06-30 06:24:06 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-06-30 06:24:06 +0000 |
commit | 077d6c993a0f703acd642b37e560eb68a131fe56 (patch) | |
tree | a1d9d6e6ce1745910330197a5f8656362c189ad5 /editors | |
parent | 4f8baeeeb34311018748a4165926bea54683a2db (diff) | |
download | pkgsrc-077d6c993a0f703acd642b37e560eb68a131fe56.tar.gz |
Convert to use the buildlink2 framework. Trim any unnecessary changes in
the patches or remove them entirely.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sam/Makefile | 5 | ||||
-rw-r--r-- | editors/sam/buildlink2.mk | 23 |
2 files changed, 26 insertions, 2 deletions
diff --git a/editors/sam/Makefile b/editors/sam/Makefile index 86714f168ce..0e2b796ed60 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.20.2.1 2002/06/30 06:24:07 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..c083284f3ab --- /dev/null +++ b/editors/sam/buildlink2.mk @@ -0,0 +1,23 @@ +# $NetBSD: buildlink2.mk,v 1.1.2.1 2002/06/30 06:24:07 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 |