View | Details | Raw Unified | Return to bug 180909 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-12 / +71 lines)
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>
(-)./distinfo (-2 / +6 lines)
Lines 1-2 Link Here
1
SHA256 (allegro-4.4.2.tar.gz) = 1b21e7577dbfada02d85ca4510bd22fedaa6ce76fde7f4838c7c1276eb840fdc
1
SHA256 (allegro/allegro-4.4.2.tar.gz) = 1b21e7577dbfada02d85ca4510bd22fedaa6ce76fde7f4838c7c1276eb840fdc
2
SIZE (allegro-4.4.2.tar.gz) = 4674902
2
SIZE (allegro/allegro-4.4.2.tar.gz) = 4674902
3
SHA256 (allegro/shooter.png) = cf73f63f0224a9ee77c287b6211beb4a072ba4aa969a57993e60a2e97996e468
4
SIZE (allegro/shooter.png) = 1741
5
SHA256 (allegro/skater.png) = f0274627c6eae2ecad880c3e2f25bf5f8944f08829ac32ab0a00f77001e8b2f3
6
SIZE (allegro/skater.png) = 3395
(-)./files/patch-docs_CMakeLists.txt (-11 lines)
Lines 1-11 Link Here
1
--- docs/CMakeLists.txt.orig	2010-12-15 13:29:42.000000000 +0600
2
+++ docs/CMakeLists.txt	2010-12-15 13:29:49.000000000 +0600
3
@@ -9,7 +9,7 @@
4
 endif()
5
 
6
 set(DOCDIR "doc" CACHE STRING "Install docs into $DOCDIR/allegro-$VERSION")
7
-set(ACTUAL_DOC_DIR "${DOCDIR}/allegro-${ALLEGRO_VERSION}")
8
+set(ACTUAL_DOC_DIR "${DOCDIR}")
9
 
10
 add_executable(makedoc
11
     src/makedoc/makedoc.c
(-)./files/patch-src-x-xkeyboard.c (+19 lines)
Line 0 Link Here
1
--- src/x/xkeyboard.c.orig	2010-12-08 09:13:50.000000000 +0100
2
+++ src/x/xkeyboard.c	2013-07-28 00:17:52.000000000 +0200
3
@@ -23,6 +23,7 @@
4
 #include <X11/Xos.h>
5
 #include <X11/Xlib.h>
6
 #include <X11/Xutil.h>
7
+#include <X11/XKBlib.h>
8
 #include <X11/Xproto.h>
9
 
10
 #include "allegro.h"
11
@@ -617,7 +618,7 @@
12
 
13
       TRACE (PREFIX_I "Modifier %d:", i + 1);
14
       for (j = 0; j < xmodmap->max_keypermod; j++) {
15
-	 KeySym sym = XKeycodeToKeysym(_xwin.display,
16
+	 KeySym sym = XkbKeycodeToKeysym(_xwin.display, 0,
17
 	    xmodmap->modifiermap[i * xmodmap->max_keypermod + j], 0);
18
          char *sym_str = XKeysymToString(sym);
19
          TRACE(" %s", sym_str ? sym_str : "NULL");
(-)./files/pkg-message.in (+25 lines)
Line 0 Link Here
1
===============================================================================
2
3
Allegro has been installed.
4
5
Allegro have two Demos (Games)
6
7
Shooter and Skater
8
9
10
You can use executable
11
12
    %%LOCALBASE%%/bin/shooter
13
14
    %%LOCALBASE%%/bin/skater
15
16
17
Or can use desktop files
18
19
    %%LOCALBASE%%/share/applications/shooter.desktop
20
21
    %%LOCALBASE%%/share/applications/skater.desktop
22
23
Have fun!
24
25
===============================================================================
(-)./files/shooter.in (+7 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# # $FreeBSD$
4
#
5
6
cd "%%EXAMPLESDIR%%/demos/shooter"
7
exec ./shooter "${@}"
(-)./files/skater.in (+7 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# # $FreeBSD$
4
#
5
6
cd "%%EXAMPLESDIR%%/demos/skater"
7
exec ./skater "${@}"
(-)./files/skater_agl.in (+7 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# # $FreeBSD$
4
#
5
6
cd "%%EXAMPLESDIR%%/demos/skater"
7
exec ./skater_agl "${@}"
(-)./pkg-plist (+5 lines)
Lines 8-13 Link Here
8
bin/pack
8
bin/pack
9
bin/pat2dat
9
bin/pat2dat
10
bin/rgbmap
10
bin/rgbmap
11
%%DEMOS%%bin/shooter
12
%%DEMOS%%bin/skater
13
%%DEMOS%%bin/skater_agl
11
bin/textconv
14
bin/textconv
12
include/alleggl.h
15
include/alleggl.h
13
include/allegro.h
16
include/allegro.h
Lines 132-137 Link Here
132
libdata/pkgconfig/jpgalleg.pc
135
libdata/pkgconfig/jpgalleg.pc
133
libdata/pkgconfig/loadpng.pc
136
libdata/pkgconfig/loadpng.pc
134
libdata/pkgconfig/logg.pc
137
libdata/pkgconfig/logg.pc
138
%%DEMOS%%share/pixmaps/shooter.png
139
%%DEMOS%%share/pixmaps/skater.png
135
@dirrm lib/allegro/%%SHLIB_VER%%
140
@dirrm lib/allegro/%%SHLIB_VER%%
136
@dirrm lib/allegro
141
@dirrm lib/allegro
137
@dirrm include/allegrogl/GLext
142
@dirrm include/allegrogl/GLext

Return to bug 180909