Lines 6-29
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= mess |
8 |
PORTNAME= mess |
9 |
PORTVERSION= 0.145 |
9 |
PORTVERSION= 0.146${PATCHSUFFIX} |
10 |
CATEGORIES= emulators |
10 |
CATEGORIES= emulators |
11 |
MASTER_SITES= http://www.mess.org/_media/downloads:/ |
11 |
#MASTER_SITES= http://www.mess.org/_media/downloads:/ |
12 |
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}s |
12 |
MASTER_SITES= http://ompldr.org/vZHV6ag/ \ |
|
|
13 |
http://distfiles.exherbo.org/distfiles/ \ |
14 |
http://www.umich.edu/~archive/apollo/ |
15 |
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//:C/p[0-9]*$//}s |
16 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
17 |
${UPDATE_PATCHES:C/$/.zip/} |
13 |
DIST_SUBDIR= mame |
18 |
DIST_SUBDIR= mame |
14 |
|
19 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
20 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= The popular MESS (Multiple Emulator Super System) |
21 |
COMMENT= The popular MESS (Multiple Emulator Super System) |
17 |
|
22 |
|
18 |
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \ |
23 |
LIB_DEPENDS= FLAC:${PORTSDIR}/audio/flac \ |
19 |
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig |
24 |
jpeg:${PORTSDIR}/graphics/jpeg \ |
|
|
25 |
expat:${PORTSDIR}/textproc/expat2 \ |
26 |
fontconfig:${PORTSDIR}/x11-fonts/fontconfig |
20 |
RUN_DEPENDS= liberation-fonts-ttf>=0:${PORTSDIR}/x11-fonts/liberation-fonts-ttf |
27 |
RUN_DEPENDS= liberation-fonts-ttf>=0:${PORTSDIR}/x11-fonts/liberation-fonts-ttf |
21 |
|
28 |
|
22 |
OPTIONS_DEFINE= BUILTIN_DEBUGGER DOCS |
29 |
OPTIONS_DEFINE= BUILTIN_DEBUGGER DEBUG DOCS EXAMPLES |
23 |
|
30 |
BUILTIN_DEBUGGER_DESC= Enable builtin debugger support |
24 |
BUILTIN_DEBUGGER_DESCR= Enable builtin debugger support |
|
|
25 |
|
26 |
ONLY_FOR_ARCHS= i386 amd64 |
27 |
|
31 |
|
28 |
NO_WRKSUBDIR= yes |
32 |
NO_WRKSUBDIR= yes |
29 |
|
33 |
|
Lines 31-46
Link Here
|
31 |
USE_XORG= xext xi xinerama xrender |
35 |
USE_XORG= xext xi xinerama xrender |
32 |
USE_GL= gl |
36 |
USE_GL= gl |
33 |
USE_SDL= sdl ttf |
37 |
USE_SDL= sdl ttf |
34 |
USE_GCC= 4.4+ |
38 |
USE_GCC= 4.6+ |
35 |
USE_GMAKE= yes |
39 |
USE_GMAKE= yes |
36 |
MAKE_ENV= NOWERROR=1 OPT_FLAGS="${CXXFLAGS}" GCC_LDFLAGS="${LDFLAGS}" |
40 |
MAKE_ENV= NOWERROR=1 OPTIMIZE=0 USE_NETWORK=1 \ |
|
|
41 |
OPT_FLAGS="${CXXFLAGS}" GCC_LDFLAGS="${LDFLAGS}" |
37 |
MAKEFILE= makefile |
42 |
MAKEFILE= makefile |
38 |
MAKE_JOBS_SAFE= yes |
43 |
MAKE_JOBS_SAFE= yes |
39 |
|
44 |
|
40 |
CXXFLAGS+= -fpermissive |
|
|
41 |
|
42 |
SUB_FILES= pkg-message |
45 |
SUB_FILES= pkg-message |
43 |
|
46 |
|
|
|
47 |
PATCHLEVEL= # none |
48 |
|
49 |
.if defined(PATCHLEVEL) && ${PATCHLEVEL} |
50 |
PATCHSUFFIX= p${PATCHLEVEL} |
51 |
UPDATE_PATCHES!= /usr/bin/jot -s " " \ |
52 |
-w ${PORTNAME}${PORTVERSION:S/.//:C/\.p[0-9]*$//}u%d_diff \ |
53 |
${PATCHLEVEL} 1 ${PATCHLEVEL} |
54 |
.endif |
55 |
|
44 |
.include <bsd.port.options.mk> |
56 |
.include <bsd.port.options.mk> |
45 |
|
57 |
|
46 |
.if ${PORT_OPTIONS:MBUILTIN_DEBUGGER} |
58 |
.if ${PORT_OPTIONS:MBUILTIN_DEBUGGER} |
Lines 55-75
Link Here
|
55 |
GTK_LIBS="" |
67 |
GTK_LIBS="" |
56 |
.endif |
68 |
.endif |
57 |
|
69 |
|
|
|
70 |
.if ${PORT_OPTIONS:MDEBUG} |
71 |
MAKE_ENV+= DEBUG=1 |
72 |
.endif |
73 |
|
58 |
.include <bsd.port.pre.mk> |
74 |
.include <bsd.port.pre.mk> |
59 |
|
75 |
|
60 |
.if ${ARCH} == "amd64" |
76 |
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" |
61 |
MAKE_ENV+= PTR64=1 |
77 |
BROKEN= Does not install on ia64, powerpc, or sparc64 |
|
|
78 |
.endif |
79 |
|
80 |
post-extract: |
81 |
# Use post-extract target to get in before dos2unix-isation |
82 |
.if defined(UPDATE_PATCHES) |
83 |
. for patch in ${UPDATE_PATCHES:S/_/./} |
84 |
@${ECHO_MSG} -n "===> Applying upstream development patch ${patch}... " |
85 |
@${PATCH} ${PATCH_ARGS} < ${WRKSRC}/${patch} |
86 |
@${ECHO_MSG} "[DONE]" |
87 |
. endfor |
62 |
.endif |
88 |
.endif |
63 |
|
89 |
|
64 |
post-patch: |
90 |
post-patch: |
65 |
@${REINPLACE_CMD} -e \ |
91 |
@${REINPLACE_CMD} -e \ |
66 |
's|^BUILD_EXPAT|# BUILD_EXPAT| ; \ |
92 |
's|^BUILD_EXPAT|# BUILD_EXPAT| ; \ |
67 |
s|^BUILD_ZLIB|# BUILD_ZLIB| ; \ |
93 |
s|^BUILD_ZLIB|# BUILD_ZLIB| ; \ |
68 |
/--warn-common/s|= -Wl,|= $$(GCC_LDFLAGS) -Wl,| ; \ |
94 |
s|^BUILD_FLAC|# BUILD_FLAC| ; \ |
69 |
/LDFLAGS/s|-s|| ; \ |
95 |
s|^BUILD_JPEGLIB|# BUILD_JPEGLIB| ; \ |
70 |
s| = @gcc| := $$(CC)| ; \ |
96 |
s| = @gcc| := $$(CC)| ; \ |
71 |
s| = @g++| := $$(CXX)| ; \ |
97 |
s| = @g++| := $$(CXX)| ; \ |
72 |
s|^FULLNAME =.*|FULLNAME = $$(NAME)|' ${WRKSRC}/makefile |
98 |
s|^FULLNAME =.*|FULLNAME = $$(NAME)| ; \ |
|
|
99 |
/--warn-common/s|= -Wl,|= $$(GCC_LDFLAGS) -Wl,| ; \ |
100 |
/LDFLAGS/s|-s||' ${WRKSRC}/makefile |
73 |
@${REINPLACE_CMD} -e \ |
101 |
@${REINPLACE_CMD} -e \ |
74 |
'/-system/s|/usr/local/|${LOCALBASE}/| ; \ |
102 |
'/-system/s|/usr/local/|${LOCALBASE}/| ; \ |
75 |
/--cflags-only-I gtk+-2.0/s|=.*|= $$(GTK_INCPATH)| ; \ |
103 |
/--cflags-only-I gtk+-2.0/s|=.*|= $$(GTK_INCPATH)| ; \ |