diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-01-23 10:02:47 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-01-23 10:02:47 +0000 |
commit | bdf202c987d1bd7d6555d86dddec8e636842ae62 (patch) | |
tree | c8f0729499c34e293af7c1892f5c8328d958e261 /graphics/allegrogl/Makefile | |
parent | 85f87a32fc26d5c1a3f286895996662c9480f7c6 (diff) | |
download | ports-bdf202c987d1bd7d6555d86dddec8e636842ae62.tar.gz ports-bdf202c987d1bd7d6555d86dddec8e636842ae62.zip |
Notes
Diffstat (limited to 'graphics/allegrogl/Makefile')
-rw-r--r-- | graphics/allegrogl/Makefile | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/graphics/allegrogl/Makefile b/graphics/allegrogl/Makefile new file mode 100644 index 000000000000..9bc7dd94b8fa --- /dev/null +++ b/graphics/allegrogl/Makefile @@ -0,0 +1,67 @@ +# New ports collection makefile for: allegrogl +# Date created: 22 Jan 2004 +# Whom: Igor Pokrovsky <tiamat@comset.net> +# +# $FreeBSD$ +# + +PORTNAME= allegrogl +PORTVERSION= 0.2.0 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= alleggl-${PORTVERSION} + +MAINTAINER= tiamat@comset.net +COMMENT= OpenGL inteface for Allegro library + +LIB_DEPENDS= alleg.41:${PORTSDIR}/devel/allegro + +USE_BZIP2= yes +USE_GMAKE= yes +USE_REINPLACE= yes +USE_GL= yes +USE_X_PREFIX= yes +USE_AUTOCONF_VER=253 +GNU_CONFIGURE= yes +MAKEFILE= makefile +ALL_TARGET= lib + +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 + +do-install: + ${INSTALL_DATA} ${WRKSRC}/lib/unix/libagl.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/include/alleggl.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/include/alleggl_config.h ${PREFIX}/include + @${MKDIR} ${PREFIX}/include/allegrogl + ${INSTALL_DATA} ${WRKSRC}/include/allegrogl/*.h \ + ${PREFIX}/include/allegrogl + @${MKDIR} ${PREFIX}/include/allegrogl/GLext + ${INSTALL_DATA} ${WRKSRC}/include/allegrogl/GLext/*.h \ + ${PREFIX}/include/allegrogl/GLext + + @${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> |