Lines 6-34
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= hex-a-hop |
8 |
PORTNAME= hex-a-hop |
9 |
PORTVERSION= 1.0.0 |
9 |
PORTVERSION= 1.1.0 |
10 |
PORTREVISION= 4 |
|
|
11 |
CATEGORIES= games |
10 |
CATEGORIES= games |
12 |
MASTER_SITES= http://ftp.bishopston.net/freebsd/distfiles/ \ |
11 |
MASTER_SITES= SF/${PORTNAME:S/-//g}/${PORTNAME}/${PORTVERSION} |
13 |
ftp://ftp.bishopston.net/freebsd/distfiles/ \ |
|
|
14 |
http://critical.ch/distfiles/ |
15 |
|
12 |
|
16 |
MAINTAINER= jamie@bishopston.net |
13 |
MAINTAINER= jamie@bishopston.net |
17 |
COMMENT= A puzzle game based on hexagonal tiles |
14 |
COMMENT= A puzzle game based on hexagonal tiles |
18 |
|
15 |
|
19 |
USE_SDL= sdl |
16 |
USE_SDL= sdl |
20 |
MAKEFILE= Makefile.FreeBSD |
17 |
GNU_CONFIGURE= yes |
21 |
ALL_TARGET= ${PORTNAME} |
18 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
|
|
19 |
|
20 |
CPPFLAGS+= -I${LOCALBASE}/include |
21 |
CFLAGS+= -I${LOCALBASE}/include |
22 |
LDFLAGS+= -L${LOCALBASE}/lib |
23 |
|
24 |
OPTIONS= PANGO "Use sdl_pango instead of sdl_ttf" off \ |
25 |
SOUND "Compile sound support" on |
22 |
|
26 |
|
23 |
MAKE_ARGS+= SYSTEM_INSTALL_DIR="${DATADIR}/" |
|
|
24 |
DESKTOP_ENTRIES="Hex-a-Hop" "A puzzle game based on hexagonal tiles" \ |
27 |
DESKTOP_ENTRIES="Hex-a-Hop" "A puzzle game based on hexagonal tiles" \ |
25 |
"${DATADIR}/graphics/icon.bmp" \ |
28 |
"${DATADIR}/icon.bmp" \ |
26 |
"hex-a-hop" "Application;LogicGame;Game;" false |
29 |
"hex-a-hop" "Application;LogicGame;Game;" false |
27 |
|
30 |
|
28 |
do-install: |
31 |
.include <bsd.port.pre.mk> |
29 |
${INSTALL_PROGRAM} ${WRKSRC}/hex-a-hop ${PREFIX}/bin |
32 |
|
30 |
${MKDIR} ${DATADIR}/graphics |
33 |
.if !defined(WITHOUT_NLS) |
31 |
${INSTALL_DATA} ${WRKSRC}/graphics/* ${DATADIR}/graphics/ |
34 |
USE_GETTEXT= yes |
32 |
${INSTALL_DATA} ${WRKSRC}/levels.dat ${DATADIR}/ |
35 |
CONFIGURE_ENV+= ac_cv_header_libintl_h=yes |
|
|
36 |
LDFLAGS+= -lintl |
37 |
.else |
38 |
CONFIGURE_ENV+= ac_cv_header_libintl_h=no |
39 |
.endif |
40 |
|
41 |
.if !defined(WITHOUT_PANGO) |
42 |
USE_SDL+= pango |
43 |
CONFIGURE_ARGS+=--disable-sdlttf |
44 |
.else |
45 |
USE_SDL+= ttf |
46 |
.endif |
47 |
|
48 |
.if !defined(WITHOUT_SOUND) |
49 |
USE_SDL+= mixer |
50 |
.else |
51 |
CONFIGURE_ARGS+=--disable-sound |
52 |
.endif |
33 |
|
53 |
|
34 |
.include <bsd.port.mk> |
54 |
.include <bsd.port.post.mk> |