Lines 15-62
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 |
USES= gmake |
|
|
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 |
|
|
33 |
|
34 |
OPTIONS_DEFINE= OPTIMIZED_CFLAGS SDL |
35 |
OPTIONS_DEFINE_i386= RAZE |
38 |
|
36 |
|
39 |
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} |
37 |
OPTIMIZED_CFLAGS_CONFIGURE_OFF= --without-gcc |
|
|
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 |
40 |
|
43 |
|
41 |
.include <bsd.port.options.mk> |
44 |
.include <bsd.port.options.mk> |
42 |
|
45 |
|
43 |
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS) |
46 |
.if empty(PORT_OPTIONS:MRAZE) |
44 |
CONFIGURE_ARGS+= --without-gcc |
|
|
45 |
.endif |
46 |
|
47 |
.if ${PORT_OPTIONS:MRAZE} |
48 |
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm |
49 |
CONFIGURE_ARGS+=--with-raze |
50 |
.else |
51 |
CONFIGURE_ARGS+=--with-cmz80 |
47 |
CONFIGURE_ARGS+=--with-cmz80 |
52 |
.endif |
48 |
.endif |
53 |
|
49 |
|
54 |
.if ${PORT_OPTIONS:MSDL} |
|
|
55 |
CONFIGURE_ARGS+=--with-sdl-audio |
56 |
.endif |
57 |
|
58 |
post-patch: |
50 |
post-patch: |
59 |
@${REINPLACE_CMD} -e '/%define %1 @UNDERSCORE@%1 /d' \ |
51 |
@${REINPLACE_CMD} -e \ |
60 |
${WRKSRC}/raze/raze.asm.in |
52 |
'/%define %1 @UNDERSCORE@%1 /d' ${WRKSRC}/raze/raze.asm.in |
61 |
|
53 |
|
62 |
.include <bsd.port.mk> |
54 |
.include <bsd.port.mk> |