diff options
author | jlam <jlam@pkgsrc.org> | 2001-11-30 05:45:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-11-30 05:45:17 +0000 |
commit | f0b20741bc8e27c54eaee7ce2eea1a1f96551477 (patch) | |
tree | 54178d590e44ef44939c22ffb118388e4f46e956 /lang/cim | |
parent | 142b319a6ddf997e9cd2f63588528d78ce28a53a (diff) | |
download | pkgsrc-f0b20741bc8e27c54eaee7ce2eea1a1f96551477.tar.gz |
Buildlinkify.
Diffstat (limited to 'lang/cim')
-rw-r--r-- | lang/cim/Makefile | 17 | ||||
-rw-r--r-- | lang/cim/buildlink.mk | 35 |
2 files changed, 48 insertions, 4 deletions
diff --git a/lang/cim/Makefile b/lang/cim/Makefile index f367dcb90c5..3fdf93e7808 100644 --- a/lang/cim/Makefile +++ b/lang/cim/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2001/04/21 01:10:58 jtb Exp $ +# $NetBSD: Makefile,v 1.10 2001/11/30 05:45:17 jlam Exp $ DISTNAME= cim-3.30 CATEGORIES= lang @@ -8,11 +8,20 @@ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.gnu.org/software/cim/cim.html COMMENT= Simula compiler based on the C programming language -GNU_CONFIGURE= yes -USE_LIBTOOL= yes +USE_BUILDLINK_ONLY= YES +GNU_CONFIGURE= YES +USE_LIBTOOL= YES LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig -USE_PERL5= yes INFO_FILES= cim.info +# Cim works by outputting C code, then executing the C compiler with +# hard-coded flags. We need to purge these flags of any buildlink +# references. +# +SCFLAGS= ${CFLAGS:S/${BUILDLINK_DIR}/${LOCALBASE}/g} +SLDFLAGS= ${LDFLAGS:S/${BUILDLINK_DIR}/${LOCALBASE}/g} +MAKE_ENV+= AM_MAKEFLAGS='SCFLAGS="${SCFLAGS}" SLDFLAGS="${SLDFLAGS}"' + +.include "../../lang/perl5/buildlink.mk" .include "../../mk/bsd.pkg.mk" diff --git a/lang/cim/buildlink.mk b/lang/cim/buildlink.mk new file mode 100644 index 00000000000..edfcf465554 --- /dev/null +++ b/lang/cim/buildlink.mk @@ -0,0 +1,35 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/11/30 05:45:17 jlam Exp $ +# +# This Makefile fragment is included by packages that use cim. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.cim to the dependency pattern +# for the version of cim desired. +# (2) Include this Makefile fragment in the package Makefile, +# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header +# search path, and +# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search +# path. + +.if !defined(CIM_BUILDLINK_MK) +CIM_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.cim?= cim>=3.30 +DEPENDS+= ${BUILDLINK_DEPENDS.cim}:../../lang/cim + +EVAL_PREFIX+= BUILDLINK_PREFIX.cim=cim +BUILDLINK_PREFIX.cim_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.cim= include/cim.h +BUILDLINK_FILES.cim+= lib/libcim-atr.* +BUILDLINK_FILES.cim+= lib/libcim.* + +BUILDLINK_TARGETS.cim= cim-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.cim} + +pre-configure: ${BUILDLINK_TARGETS.cim} +cim-buildlink: _BUILDLINK_USE + +.endif # CIM_BUILDLINK_MK |