freebsd-ports/graphics/allegrogl/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

60 lines
1.4 KiB
Makefile

# New ports collection makefile for: allegrogl
# Date created: 22 Jan 2004
# Whom: Igor Pokrovsky <tiamat@comset.net>
#
# $FreeBSD$
#
PORTNAME= allegrogl
PORTVERSION= 0.2.4
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= alleggl-${PORTVERSION}
MAINTAINER= ip@doom.homeunix.org
COMMENT= OpenGL inteface for Allegro library
LIB_DEPENDS= alleg.42:${PORTSDIR}/devel/allegro
USE_BZIP2= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_GL= yes
USE_X_PREFIX= yes
USE_AUTOTOOLS= autoconf:253
GNU_CONFIGURE= yes
MAKEFILE= makefile
ALL_TARGET= lib
INSTALLS_SHLIB= yes
WRKSRC= ${WRKDIR}/alleggl
ALLEGRO_CONFIG?=${LOCALBASE}/bin/allegro-config
post-patch:
@${REINPLACE_CMD} -e 's|%%GMAKE%%|${GMAKE}|g; \
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure.in
@${REINPLACE_CMD} -e 's|%%ALLEGRO_CONFIG%%|${ALLEGRO_CONFIG}|g' \
${WRKSRC}/make/makefile.unx
post-install:
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examp/* ${EXAMPLESDIR}
@${PERL} -pi -e 's|%%CC%%|${CC}|g; \
s|%%RM%%|${RM}|g; \
s|%%CFLAGS%%|${CFLAGS}|g; \
s|%%PREFIX%%|${PREFIX}|g; \
s|%%X11BASE%%|${X11BASE}|g; \
s|%%ALLEGRO_CONFIG%%|${ALLEGRO_CONFIG}|g' \
<${PATCHDIR}/makefile.ex >${EXAMPLESDIR}/makefile
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>