diff options
-rw-r--r-- | archivers/bzip2/buildlink.mk | 69 | ||||
-rw-r--r-- | graphics/ImageMagick/buildlink.mk | 69 |
2 files changed, 0 insertions, 138 deletions
diff --git a/archivers/bzip2/buildlink.mk b/archivers/bzip2/buildlink.mk deleted file mode 100644 index 898dfa41ee6..00000000000 --- a/archivers/bzip2/buildlink.mk +++ /dev/null @@ -1,69 +0,0 @@ -# $NetBSD: buildlink.mk,v 1.8 2002/08/07 19:29:29 jlam Exp $ -# -# This Makefile fragment is included by packages that use bzip2. -# -# To use this Makefile fragment, simply: -# -# (1) Optionally define BUILDLINK_DEPENDS.bzip2 to the dependency pattern -# for the version of bzip2 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(BZIP2_BUILDLINK_MK) -BZIP2_BUILDLINK_MK= # defined - -.include "../../mk/bsd.buildlink.mk" - -BUILDLINK_DEPENDS.bzip2?= bzip2>=1.0.1 - -.if defined(USE_BZIP2) -_NEED_BZIP2= YES -.else -. if exists(/usr/include/bzlib.h) -# -# Recent versions of the libbz2 API prefix all functions with "BZ2_". -# -_BUILTIN_BZIP2!= ${EGREP} -c "BZ2_" /usr/include/bzlib.h || ${TRUE} -. else -_BUILTIN_BZIP2= 0 -. endif -. if ${_BUILTIN_BZIP2} == "0" -_NEED_BZIP2= YES -. else -_NEED_BZIP2= NO -. endif -# -# This catch-all for SunOS is probably too broad, but better to err on -# the safe side. We can narrow down the match when we have better -# information. -# -_INCOMPAT_BZIP2= SunOS-*-* -INCOMPAT_BZIP2?= # empty -. for _pattern_ in ${_INCOMPAT_BZIP2} ${INCOMPAT_BZIP2} -. if !empty(MACHINE_PLATFORM:M${_pattern_}) -_NEED_BZIP2= YES -. endif -. endfor -.endif - -.if ${_NEED_BZIP2} == "YES" -DEPENDS+= ${BUILDLINK_DEPENDS.bzip2}:../../archivers/bzip2 -EVAL_PREFIX+= BUILDLINK_PREFIX.bzip2=bzip2 -BUILDLINK_PREFIX.bzip2_DEFAULT= ${LOCALBASE} -.else -BUILDLINK_PREFIX.bzip2= /usr -.endif - -BUILDLINK_FILES.bzip2= include/bzlib.h -BUILDLINK_FILES.bzip2+= lib/libbz2.* - -BUILDLINK_TARGETS.bzip2= bzip2-buildlink -BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.bzip2} - -pre-configure: ${BUILDLINK_TARGETS.bzip2} -bzip2-buildlink: _BUILDLINK_USE - -.endif # BZIP2_BUILDLINK_MK diff --git a/graphics/ImageMagick/buildlink.mk b/graphics/ImageMagick/buildlink.mk deleted file mode 100644 index b08907034be..00000000000 --- a/graphics/ImageMagick/buildlink.mk +++ /dev/null @@ -1,69 +0,0 @@ -# $NetBSD: buildlink.mk,v 1.8 2002/03/13 17:37:03 fredb Exp $ -# -# This Makefile fragment is included by packages that use ImageMagick. -# -# To use this Makefile fragment, simply: -# -# (1) Optionally define BUILDLINK_DEPENDS.ImageMagick to the dependency pattern -# for the version of ImageMagick 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(IMAGEMAGICK_BUILDLINK_MK) -IMAGEMAGICK_BUILDLINK_MK= # defined - -.include "../../mk/bsd.buildlink.mk" - -BUILDLINK_DEPENDS.ImageMagick?= ImageMagick>=5.3.9nb1 -DEPENDS+= ${BUILDLINK_DEPENDS.ImageMagick}:../../graphics/ImageMagick - -EVAL_PREFIX+= BUILDLINK_PREFIX.ImageMagick=ImageMagick -BUILDLINK_PREFIX.ImageMagick_DEFAULT= ${LOCALBASE} -BUILDLINK_FILES.ImageMagick= include/Magick++.h -BUILDLINK_FILES.ImageMagick+= include/Magick++/* -BUILDLINK_FILES.ImageMagick+= include/magick/* -BUILDLINK_FILES.ImageMagick+= lib/libMagick.* -BUILDLINK_FILES.ImageMagick+= lib/libMagick++.* - -.include "../../archivers/bzip2/buildlink.mk" -.include "../../graphics/jpeg/buildlink.mk" -.include "../../graphics/png/buildlink.mk" -.include "../../graphics/tiff/buildlink.mk" - -BUILDLINK_TARGETS.ImageMagick= ImageMagick-buildlink -BUILDLINK_TARGETS.ImageMagick+= magick-buildlink-config-wrapper -BUILDLINK_TARGETS.ImageMagick+= magickpp-buildlink-config-wrapper -BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.ImageMagick} - -BUILDLINK_CONFIG.magick= \ - ${BUILDLINK_PREFIX.ImageMagick}/bin/Magick-config -BUILDLINK_CONFIG_WRAPPER.magick= \ - ${BUILDLINK_DIR}/bin/Magick-config -REPLACE_BUILDLINK_SED+= \ - -e "s|${BUILDLINK_CONFIG_WRAPPER.magick}|${BUILDLINK_CONFIG.magick}|g" - -BUILDLINK_CONFIG.magickpp= \ - ${BUILDLINK_PREFIX.ImageMagick}/bin/Magick++-config -BUILDLINK_CONFIG_WRAPPER.magickpp= \ - ${BUILDLINK_DIR}/bin/Magick++-config -REPLACE_BUILDLINK_SED+= \ - -e "s|${BUILDLINK_CONFIG_WRAPPER.magickpp}|${BUILDLINK_CONFIG.magickpp}|g" - -.if defined(USE_CONFIG_WRAPPER) -MAGICK_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.magick} -MAGICKPP_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.magickpp} -CONFIGURE_ENV+= MAGICK_CONFIG="${MAGICK_CONFIG}" -CONFIGURE_ENV+= MAGICKPP_CONFIG="${MAGICKPP_CONFIG}" -MAKE_ENV+= MAGICK_CONFIG="${MAGICK_CONFIG}" -MAKE_ENV+= MAGICKPP_CONFIG="${MAGICKPP_CONFIG}" -.endif - -pre-configure: ${BUILDLINK_TARGETS.ImageMagick} -ImageMagick-buildlink: _BUILDLINK_USE -magick-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE -magickpp-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE - -.endif # IMAGEMAGICK_BUILDLINK_MK |