Lines 2-37
Link Here
|
2 |
|
2 |
|
3 |
PORTNAME= allegro |
3 |
PORTNAME= allegro |
4 |
DISTVERSION= 4.4.2 |
4 |
DISTVERSION= 4.4.2 |
5 |
PORTREVISION= 1 |
5 |
PORTREVISION= 2 |
6 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
7 |
MASTER_SITES= SF/alleg/allegro/${PORTVERSION} |
7 |
MASTER_SITES= SF/alleg/allegro/${PORTVERSION} |
|
|
8 |
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} |
9 |
DIST_SUBDIR= ${PORTNAME} |
10 |
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} |
8 |
|
11 |
|
9 |
MAINTAINER= nemysis@gmx.ch |
12 |
MAINTAINER= nemysis@gmx.ch |
10 |
COMMENT= Cross-platform library for games and multimedia programming |
13 |
COMMENT= Cross-platform library for games and multimedia programming |
11 |
|
14 |
|
12 |
USE_GMAKE= yes |
15 |
LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib \ |
13 |
USES= cmake pkgconfig |
16 |
jack:${PORTSDIR}/audio/jack \ |
|
|
17 |
png15:${PORTSDIR}/graphics/png |
18 |
|
19 |
USES= cmake gmake pkgconfig |
14 |
USE_XORG= x11 xpm xext xcursor xxf86vm xxf86dga |
20 |
USE_XORG= x11 xpm xext xcursor xxf86vm xxf86dga |
15 |
USE_LDCONFIG= yes |
21 |
USE_LDCONFIG= yes |
16 |
WANT_GNOME= yes |
22 |
WANT_GNOME= yes |
17 |
USE_GL= gl glu |
23 |
USE_GL= gl glu |
18 |
|
|
|
19 |
MAKE_JOBS_UNSAFE= yes |
24 |
MAKE_JOBS_UNSAFE= yes |
20 |
|
25 |
|
|
|
26 |
CFLAGS+= -L${LOCALBASE}/lib |
27 |
|
21 |
PORTDOCS= * |
28 |
PORTDOCS= * |
|
|
29 |
PORTEXAMPLES= * |
22 |
|
30 |
|
23 |
CONFLICTS= allegro-devel-[0-9]* |
31 |
PLIST_SUB+= SHLIB_VER="${SHLIB_VER}" |
24 |
PLIST_SUB= SHLIB_VER="${SHLIB_VER}" |
|
|
25 |
CMAKE_ARGS+= -DDOCDIR="${DOCSDIR}" |
32 |
CMAKE_ARGS+= -DDOCDIR="${DOCSDIR}" |
26 |
|
33 |
|
27 |
SHLIB_VER= 4.4.2 |
34 |
SHLIB_VER= ${PORTVERSION} |
28 |
|
35 |
|
29 |
PORTSCOUT= limit:^4\.3\.[0-9]* |
36 |
PORTSCOUT= limit:^4\.3\.[0-9]* |
30 |
|
37 |
|
31 |
CFLAGS+= -L${LOCALBASE}/lib |
38 |
OPTIONS_DEFINE= DOCS |
32 |
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib \ |
39 |
OPTIONS_GROUP= EXAMPLES_DEMOS |
33 |
jack.0:${PORTSDIR}/audio/jack \ |
40 |
OPTIONS_GROUP_EXAMPLES_DEMOS= EXAMPLES DEMOS |
34 |
png15:${PORTSDIR}/graphics/png |
41 |
OPTIONS_DEFAULT= DEMOS |
|
|
42 |
DEMOS_DESC= Install Demos programs, requires EXAMPLES |
43 |
|
44 |
OPTIONS_SUB= yes |
45 |
|
46 |
DOCSRCDIR1= ${WRKSRC} |
47 |
DOC_FILES1= AUTHORS CHANGES THANKS readme.txt |
48 |
|
49 |
DOCSRCDIR2= ${WRKSRC}/docs |
50 |
DOCSDIR2= ${DOCSDIR}/docs |
35 |
|
51 |
|
36 |
.include <bsd.port.options.mk> |
52 |
.include <bsd.port.options.mk> |
37 |
|
53 |
|
Lines 40-48
Link Here
|
40 |
INFO= allegro |
56 |
INFO= allegro |
41 |
.endif |
57 |
.endif |
42 |
|
58 |
|
|
|
59 |
.if ${PORT_OPTIONS:MEXAMPLES} |
60 |
CMAKE_ARGS+=-DWANT_EXAMPLES=on |
61 |
.else |
62 |
CMAKE_ARGS+=-DWANT_EXAMPLES=off |
63 |
.endif |
64 |
|
65 |
.if ${PORT_OPTIONS:MDEMOS} && ${PORT_OPTIONS:MEXAMPLES} |
66 |
SUB_FILES+= shooter skater skater_agl \ |
67 |
pkg-message |
68 |
MASTER_SITES+= SF/nemysisfreebsdp/allegro/:icons |
69 |
DISTFILES+= shooter.png:icons \ |
70 |
skater.png:icons |
71 |
DESKTOP_ENTRIES+="Shooter" "In a distant corner of the galaxy" "shooter" \ |
72 |
"shooter" "Game;ArcadeGame;" false |
73 |
DESKTOP_ENTRIES+="Skater" "Allegro's next demo game" "skater" \ |
74 |
"skater" "Game;ArcadeGame;" false |
75 |
DESKTOP_ENTRIES+="Skater AGL" "Allegro's next demo game" "skater" \ |
76 |
"skater_agl" "Game;ArcadeGame;" false |
77 |
.endif |
78 |
|
43 |
post-patch: |
79 |
post-patch: |
|
|
80 |
@${REINPLACE_CMD} -e 's|/allegro-$${ALLEGRO_VERSION}||' \ |
81 |
${WRKSRC}/docs/CMakeLists.txt |
82 |
@${REINPLACE_CMD} -e 's|<X11/extensions/xf86dga.h>|<X11/extensions/Xxf86dga.h>|' \ |
83 |
${WRKSRC}/src/x/xdga2.c |
84 |
@${REINPLACE_CMD} -e 's|jack_client = jack_client_new(jack_client_name);|jack_client = jack_client_open(jack_client_name, (jack_options_t)0, NULL);|' \ |
85 |
${WRKSRC}/src/unix/jack.c |
44 |
.if ! ${PORT_OPTIONS:MDOCS} |
86 |
.if ! ${PORT_OPTIONS:MDOCS} |
45 |
@${REINPLACE_CMD} -e 's|add_subdirectory(docs)|#add_subdirectory(docs)|' ${WRKSRC}/CMakeLists.txt |
87 |
@${REINPLACE_CMD} -e 's|add_subdirectory(docs)|#add_subdirectory(docs)|' \ |
|
|
88 |
${WRKSRC}/CMakeLists.txt |
46 |
.endif |
89 |
.endif |
47 |
|
90 |
|
48 |
post-install: |
91 |
post-install: |
Lines 51-54
Link Here
|
51 |
${FIND} . -type f -and -name "*.3" -exec ${INSTALL_MAN} {} ${PREFIX}/man/man3/{} \; |
94 |
${FIND} . -type f -and -name "*.3" -exec ${INSTALL_MAN} {} ${PREFIX}/man/man3/{} \; |
52 |
.endif |
95 |
.endif |
53 |
|
96 |
|
|
|
97 |
.if ${PORT_OPTIONS:MEXAMPLES} |
98 |
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) |
99 |
.endif |
100 |
|
101 |
.if ${PORT_OPTIONS:MDEMOS} && ${PORT_OPTIONS:MEXAMPLES} |
102 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} demos ${EXAMPLESDIR}) |
103 |
${INSTALL_SCRIPT} ${WRKDIR}/shooter ${PREFIX}/bin |
104 |
${INSTALL_DATA} ${_DISTDIR}/shooter.png ${PREFIX}/share/pixmaps |
105 |
@(cd ${EXAMPLESDIR}/demos/shooter && ${CHMOD} 755 shooter) |
106 |
${INSTALL_SCRIPT} ${WRKDIR}/skater* ${PREFIX}/bin |
107 |
${INSTALL_DATA} ${_DISTDIR}/skater.png ${PREFIX}/share/pixmaps |
108 |
@(cd ${EXAMPLESDIR}/demos/skater && ${CHMOD} 755 skater*) |
109 |
@${ECHO_CMD} |
110 |
@${CAT} ${PKGMESSAGE} |
111 |
@${ECHO_CMD} |
112 |
.endif |
54 |
.include <bsd.port.mk> |
113 |
.include <bsd.port.mk> |