aboutsummaryrefslogtreecommitdiff
path: root/games/lincity
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-08-28 20:24:50 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-08-28 20:24:50 +0000
commit72a787d908748af3410286c48f958ab2af4c7110 (patch)
treea97a5f31819eca2c86b9cb45afcfc44a9f901707 /games/lincity
parent9ba7756b08884db69a0a92eb29c8be6272bd7d54 (diff)
downloadports-72a787d908748af3410286c48f958ab2af4c7110.tar.gz
ports-72a787d908748af3410286c48f958ab2af4c7110.zip
Notes
Diffstat (limited to 'games/lincity')
-rw-r--r--games/lincity/Makefile13
-rw-r--r--games/lincity/files/patch-pixmap.c11
-rw-r--r--games/lincity/files/patch-pixmap.h11
3 files changed, 28 insertions, 7 deletions
diff --git a/games/lincity/Makefile b/games/lincity/Makefile
index 38fd3fad559c..dbfe7b9f61af 100644
--- a/games/lincity/Makefile
+++ b/games/lincity/Makefile
@@ -10,25 +10,21 @@ MASTER_SITES= SF/${PORTNAME}/Lincity%20Development%20Source/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Rich city simulation game for X
-OPTIONS_DEFINE= SVGALIB NLS
-
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
USES= gmake
-USE_CSTD= c89
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN6= lincity.6
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= SVGALIB NLS
-pre-configure:
- @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/readpng.c
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSVGALIB}
-LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
+LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib
CONFIGURE_ARGS+= --without-x
PLIST_SUB= PROG="bin/lincity"
.else
@@ -45,4 +41,7 @@ CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
+pre-configure:
+ @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/readpng.c
+
.include <bsd.port.mk>
diff --git a/games/lincity/files/patch-pixmap.c b/games/lincity/files/patch-pixmap.c
new file mode 100644
index 000000000000..18de78f4e1dd
--- /dev/null
+++ b/games/lincity/files/patch-pixmap.c
@@ -0,0 +1,11 @@
+--- pixmap.c.orig 2003-03-17 01:32:40.000000000 +0300
++++ pixmap.c 2013-08-28 22:15:03.677227606 +0400
+@@ -390,7 +390,7 @@
+ likes it in the file. Still need to fix this in autoconf,
+ but for now this will do. */
+ #if !defined (WIN32)
+-inline int
++int
+ pixmap_index (int x, int y)
+ {
+ return y*pixmap_width + x;
diff --git a/games/lincity/files/patch-pixmap.h b/games/lincity/files/patch-pixmap.h
new file mode 100644
index 000000000000..d167f94702bf
--- /dev/null
+++ b/games/lincity/files/patch-pixmap.h
@@ -0,0 +1,11 @@
+--- pixmap.h.orig 2003-02-03 06:52:18.000000000 +0300
++++ pixmap.h 2013-08-28 22:14:20.285227378 +0400
+@@ -19,7 +19,7 @@
+ void initialize_pixmap (void);
+ void resize_pixmap (int new_width, int new_height);
+ int pixmap_getpixel (int x, int y);
+-inline int pixmap_index (int x, int y);
++int pixmap_index (int x, int y);
+ int pixmap_getpixel (int x, int y);
+ void pixmap_setpixel (int x, int y, int col);
+ void pixmap_hline (int x1, int y1, int x2, int col);