Lines 15-68
Link Here
|
15 |
|
15 |
|
16 |
LICENSE= GPLv2 |
16 |
LICENSE= GPLv2 |
17 |
|
17 |
|
18 |
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg |
18 |
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg |
19 |
|
|
|
20 |
OPTIONS_DEFINE= OPTIMIZED_CFLAGS SDL |
21 |
OPTIONS_DEFINE_i386= RAZE |
22 |
RAZE_DESC= Use RAZE z80 emulation (only for i386) |
23 |
SDL_DESC= Use SDL for audio |
24 |
|
19 |
|
25 |
USE_BZIP2= yes |
20 |
USE_BZIP2= yes |
|
|
21 |
USES= gmake |
26 |
USE_GNOME= gtk12 |
22 |
USE_GNOME= gtk12 |
27 |
USE_SDL= sdl |
23 |
USE_SDL= sdl |
28 |
USE_GMAKE= yes |
|
|
29 |
GNU_CONFIGURE= yes |
24 |
GNU_CONFIGURE= yes |
30 |
CONFIGURE_ARGS= --program-transform-name=s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/ |
25 |
CONFIGURE_ARGS= --program-transform-name=s/${PORTNAME}/${UNIQUENAME}/ \ |
31 |
CONFIGURE_ARGS+=--with-gtk |
26 |
--with-gtk |
32 |
MAKE_JOBS_UNSAFE= yes |
27 |
MAKE_JOBS_UNSAFE= yes |
33 |
|
28 |
|
34 |
CPPFLAGS+= -I${LOCALBASE}/include |
29 |
CPPFLAGS+= -I${LOCALBASE}/include |
35 |
LDFLAGS+= -L${LOCALBASE}/lib |
30 |
LDFLAGS+= -L${LOCALBASE}/lib |
36 |
|
31 |
|
37 |
PLIST_FILES= bin/${PORTNAME}${PKGNAMESUFFIX}-gtk |
32 |
PLIST_FILES= bin/${UNIQUENAME}-gtk |
38 |
|
33 |
|
39 |
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} |
34 |
OPTIONS_DEFINE= OPTIMIZED_CFLAGS SDL |
|
|
35 |
OPTIONS_DEFINE_i386= RAZE |
40 |
|
36 |
|
41 |
NO_STAGE= yes |
37 |
OPTIMIZED_CFLAGS_CONFIGURE_OFF= --without-gcc |
42 |
.include <bsd.port.options.mk> |
38 |
RAZE_DESC= Use RAZE z80 emulation |
|
|
39 |
RAZE_BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm |
40 |
RAZE_CONFIGURE_ON= --with-raze |
41 |
SDL_DESC= Use SDL for audio |
42 |
SDL_CONFIGURE_ON= --with-sdl-audio |
43 |
|
43 |
|
44 |
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS) |
44 |
.include <bsd.port.options.mk> |
45 |
CONFIGURE_ARGS+= --without-gcc |
|
|
46 |
.endif |
47 |
|
45 |
|
48 |
.if ${PORT_OPTIONS:MRAZE} |
46 |
.if empty(PORT_OPTIONS:MRAZE) |
49 |
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm |
|
|
50 |
CONFIGURE_ARGS+=--with-raze |
51 |
.else |
52 |
CONFIGURE_ARGS+=--with-cmz80 |
47 |
CONFIGURE_ARGS+=--with-cmz80 |
53 |
.endif |
48 |
.endif |
54 |
|
49 |
|
55 |
.if ${PORT_OPTIONS:MSDL} |
|
|
56 |
CONFIGURE_ARGS+=--with-sdl-audio |
57 |
.endif |
58 |
|
59 |
post-patch: |
50 |
post-patch: |
60 |
@${REINPLACE_CMD} -e '/%define %1 @UNDERSCORE@%1 /d' \ |
51 |
@${REINPLACE_CMD} -e \ |
61 |
${WRKSRC}/raze/raze.asm.in |
52 |
'/%define %1 @UNDERSCORE@%1 /d' ${WRKSRC}/raze/raze.asm.in |
62 |
|
|
|
63 |
post-install: |
64 |
@${ECHO_CMD} |
65 |
@${CAT} ${PKGMESSAGE} |
66 |
@${ECHO_CMD} |
67 |
|
53 |
|
68 |
.include <bsd.port.mk> |
54 |
.include <bsd.port.mk> |