9e5632dd66
the libtoolX ports instead of the one included with each port. Ports that set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of the included version. To restore previous behavior, use the new macro, USE_INC_LIBTOOL_VER. Both macros accept the same argument: a libtool version. For example, to use the ports version of libtool-1.5, add the following to your Makefile: USE_LIBTOOL_VER= 15 To use the included version of libtool with extra hacks provided by libtool-1.5, add the following to your Makefile: USE_INC_LIBTOOL_VER= 15 With this change, ports that had to add additional libtool hacks to prevent .la files from being installed or to fix certain threading issues can now delete those hacks (after appropriate testing, of course). PR: 63944 Based on work by:eik and marcus Approved by: ade (autotools maintainer) Tested by: kris on pointyhat Bound to be hidden problems: You bet
90 lines
2.3 KiB
Makefile
90 lines
2.3 KiB
Makefile
# New ports collection makefile for: quesa
|
|
# Date created: 03 Feb 2004
|
|
# Whom: Igor Pokrovsky <tiamat@comset.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= quesa
|
|
PORTVERSION= 1.6d18
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.quesa.org/info/files/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= tiamat@comset.net
|
|
COMMENT= High level 3D graphics library compatible with Apple's QuickDraw(TM)
|
|
|
|
USE_REINPLACE= yes
|
|
WANT_AUTOCONF_VER?= 253
|
|
WANT_AUTOMAKE_VER?= 15
|
|
USE_INC_LIBTOOL_VER= 13
|
|
USE_GL= yes
|
|
USE_X_PREFIX= yes
|
|
.ifdef (WITH_QUESA_EXAMPLES)
|
|
USE_GNOME= gtk12
|
|
.endif
|
|
INSTALLS_SHLIB= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/Development/Projects/Unix
|
|
|
|
CSH?= /bin/csh
|
|
|
|
.if !defined(WITH_QUESA_EXAMPLES)
|
|
PLIST_SUB= WITH_QUESA_EXAMPLES="@comment "
|
|
.else
|
|
PLIST_SUB= WITH_QUESA_EXAMPLES=""
|
|
.endif
|
|
|
|
.ifndef (WITH_QUESA_EXAMPLES)
|
|
pre-everything::
|
|
@${ECHO_CMD} ""
|
|
@${ECHO_CMD} "Define WITH_QUESA_EXAMPLES=yes to build and install Quesa example programs"
|
|
@${ECHO_CMD} ""
|
|
.endif
|
|
|
|
pre-patch:
|
|
@${FIND} ${WRKSRC} -type f -print0 | \
|
|
${XARGS} -0 ${REINPLACE_CMD} -e "y/$$(${PRINTF} '\r')/\n/"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%ACLOCAL%%|${ACLOCAL}|g; \
|
|
s|%%AUTOMAKE%%|${AUTOMAKE}|g; \
|
|
s|%%AUTOMAKE_ENV%%|${AUTOMAKE_ENV}|g; \
|
|
s|%%AUTOCONF%%|${AUTOCONF}|g; \
|
|
s|%%AUTOCONF_ENV%%|${AUTOCONF_ENV}|g; \
|
|
s|%%SETENV%%|${SETENV}|g' \
|
|
${WRKSRC}/Scripts/buildUnix.sh
|
|
.ifdef (WITH_QUESA_EXAMPLES)
|
|
@${REINPLACE_CMD} -e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g' \
|
|
${WRKSRC}/Makefile.am.examples
|
|
.endif
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC}/Scripts && \
|
|
${CSH} ./prepareUnixTree.sh && ${CSH} ./buildUnix.sh
|
|
.ifdef (WITH_QUESA_EXAMPLES)
|
|
@(cd ${WRKSRC}/Examples && \
|
|
${SETENV} CC="${CC}" CXX="${CXX}" \
|
|
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
|
|
INSTALL="${INSTALL}" \
|
|
INSTALL_DATA="${INSTALL_DATA}" \
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
|
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
|
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
|
|
.endif
|
|
|
|
.ifdef (WITH_QUESA_EXAMPLES)
|
|
post-build:
|
|
@(cd ${WRKSRC}/Examples && \
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
|
|
${MAKE_ARGS} ${ALL_TARGET})
|
|
.endif
|
|
|
|
.ifdef (WITH_QUESA_EXAMPLES)
|
|
post-install:
|
|
@(cd ${WRKSRC}/Examples && \
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
|
|
${MAKE_ARGS} ${INSTALL_TARGET})
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|