d26cf36e57
or USE_X11BASE set, but don't include mk/x11.buildlink3.mk directly or via buildlink3.mks - introduce BUILDLINK_PREFIX.libXpm as alias for BUILDLINK_PREFIX.xpm in the !modular case - fix some cases where the check for libX11 couldn't work at all by using C++ for compilation without including the proper headers Verified using a full X11_TYPE=xorg bulk build without additional breakage. Discussed with salo@, wiz@ and send to packages@ for feedback.
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.21 2006/12/27 13:37:39 joerg Exp $
|
|
|
|
DISTNAME= xtide-2.8.3
|
|
CATEGORIES= misc x11
|
|
MASTER_SITES= ftp://ftp.flaterco.com/xtide/
|
|
DISTFILES= ${DISTNAME}.tar.bz2 ${HARMONICS_FILE}.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.flaterco.com/
|
|
COMMENT= X11 tide predictor
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LANGUAGES= c c++
|
|
|
|
HARMONICS_FILE= harmonics-dwf-20060708.tcd
|
|
|
|
CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
EGDIR= ${PREFIX}/share/examples/xtide
|
|
CONF_FILES= ${EGDIR}/xtide.conf ${PKG_SYSCONFDIR}/xtide.conf
|
|
|
|
SUBST_CLASSES+= xt
|
|
SUBST_STAGE.xt= pre-configure
|
|
SUBST_FILES.xt= DOCUMENTATION/*
|
|
SUBST_SED.xt= -e 's|/usr/local|${PREFIX}|g'
|
|
|
|
PLIST_SUBST+= HARMONICS_FILE=${HARMONICS_FILE:Q}
|
|
|
|
INSTALLATION_DIRS= share/xtide ${EGDIR}
|
|
|
|
post-extract:
|
|
${ECHO} "${PREFIX}/share/xtide/${HARMONICS_FILE}" > ${WRKDIR}/xtide.conf
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKDIR}/xtide.conf ${EGDIR}/xtide.conf
|
|
${INSTALL_DATA} ${WRKDIR}/${HARMONICS_FILE} ${PREFIX}/share/xtide
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../x11/libXaw/buildlink3.mk"
|
|
.include "../../x11/libXi/buildlink3.mk"
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|