blob: 53a39c7365b79534e72491f4276c8c23d3b0fc2f (
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
|
# 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/${PORTNAME}/AllegroGL%20source/${PORTVERSION}
DISTNAME= alleggl-${PORTVERSION}
MAINTAINER= crees@FreeBSD.org
COMMENT= OpenGL interface for Allegro library
LIB_DEPENDS= alleg.42:${PORTSDIR}/devel/allegro
CONFLICTS= allegro-devel-[0-9]*
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}
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>
|