diff options
author | joerg <joerg@pkgsrc.org> | 2013-05-09 13:53:47 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-05-09 13:53:47 +0000 |
commit | 4e95abee2b2031ac0e4af296265e2c3279e989a7 (patch) | |
tree | fa42d785baf2de4968bb0c61509108f67f1a48ff /mk | |
parent | c6737fcc00c1c243a1241b7fb8c5c168a6aef89c (diff) | |
download | pkgsrc-4e95abee2b2031ac0e4af296265e2c3279e989a7.tar.gz |
Split Fortran support from devel/libtool-base into a separate package
devel/libtool-fortran. If USE_LIBTOOL is present and Fortran is in
USE_LANGUAGES, include the new package.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.use.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/bsd.pkg.use.mk b/mk/bsd.pkg.use.mk index ce6b598b47f..1d6da873b75 100644 --- a/mk/bsd.pkg.use.mk +++ b/mk/bsd.pkg.use.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.use.mk,v 1.51 2012/03/19 12:34:14 joerg Exp $ +# $NetBSD: bsd.pkg.use.mk,v 1.52 2013/05/09 13:53:48 joerg Exp $ # # Turn USE_* macros into proper depedency logic. Included near the top of # bsd.pkg.mk, after bsd.prefs.mk. @@ -90,8 +90,17 @@ BUILD_DEFS+= KERBEROS # LIBTOOL is the publicly-readable variable that should be used by # Makefiles to invoke the proper libtool. # +.if !empty(USE_LANGUAGES:Mfortran) || !empty(USE_LANGUAGES:Mfortran77) +PKG_LIBTOOL?= ${LOCALBASE}/bin/libtool-fortran +PKG_SHLIBTOOL?= ${LOCALBASE}/bin/shlibtool-fortran + +. if defined(USE_LIBTOOL) +BUILD_DEPENDS+= libtool-fortran>=${_OPSYS_LIBTOOL_REQD:U${LIBTOOL_REQD}}:../../devel/libtool-fortran +. endif +.else PKG_LIBTOOL?= ${LOCALBASE}/bin/libtool PKG_SHLIBTOOL?= ${LOCALBASE}/bin/shlibtool +.endif _LIBTOOL?= ${PKG_LIBTOOL} _SHLIBTOOL?= ${PKG_SHLIBTOOL} LIBTOOL?= ${PKG_LIBTOOL} |