3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
# New ports collection makefile for: allegrogl
|
|
# Date created: 22 Jan 2004
|
|
# Whom: Igor Pokrovsky <tiamat@comset.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= allegrogl
|
|
PORTVERSION= 0.4.3
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF
|
|
DISTNAME= alleggl-${PORTVERSION}
|
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
|
COMMENT= OpenGL inteface for Allegro library
|
|
|
|
LIB_DEPENDS= alleg.42:${PORTSDIR}/devel/allegro
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_GL= glu
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
MAKEFILE= makefile
|
|
ALL_TARGET= lib
|
|
WRKSRC= ${WRKDIR}/alleggl
|
|
|
|
post-extract:
|
|
@${RM} ${WRKSRC}/gpl.txt
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^[[:blank:]]make |${GMAKE} |' \
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
@${REINPLACE_CMD} -Ee \
|
|
's|@INSTALL@ (@INSTALL_(DATA\|PROGRAM)@) -D|\1|; \
|
|
s|(CFLAGS) =|\1 +=|' \
|
|
${WRKSRC}/make/makefile.unx
|
|
|
|
post-install:
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examp/* ${EXAMPLESDIR}
|
|
@${SED} -e \
|
|
's|%%CC%%|${CC}|g; \
|
|
s|%%RM%%|${RM}|g; \
|
|
s|%%CFLAGS%%|${CFLAGS}|g; \
|
|
s|%%PREFIX%%|${PREFIX}|g; \
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g; \
|
|
s|%%ALLEGRO_CONFIG%%|${ALLEGRO_CONFIG}|g' \
|
|
< ${FILESDIR}/makefile.ex > ${EXAMPLESDIR}/makefile
|
|
|
|
.ifndef (NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|