blob: 72aa493f5d3466f64ecff217c4b9194823c08bbb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# New ports collection makefile for: allegrogl
# Date created: 22 Jan 2004
# Whom: Igor Pokrovsky <tiamat@comset.net>
#
# $FreeBSD$
#
PORTNAME= allegrogl
PORTVERSION= 0.2.4
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.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
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>
|