diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-08-29 04:24:50 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-08-29 04:24:50 +0800 |
commit | d3f029c9f0c0d7a659ed18531b83f20204b74c29 (patch) | |
tree | a97a5f31819eca2c86b9cb45afcfc44a9f901707 /games | |
parent | 88cfb455ac6b33023b6e129bcc33f82333838fb0 (diff) | |
download | freebsd-ports-gnome-d3f029c9f0c0d7a659ed18531b83f20204b74c29.tar.gz freebsd-ports-gnome-d3f029c9f0c0d7a659ed18531b83f20204b74c29.tar.zst freebsd-ports-gnome-d3f029c9f0c0d7a659ed18531b83f20204b74c29.zip |
- Fix build breakage introduced in r324073
- (Really) fix build with clang
Diffstat (limited to 'games')
-rw-r--r-- | games/lincity/Makefile | 13 | ||||
-rw-r--r-- | games/lincity/files/patch-pixmap.c | 11 | ||||
-rw-r--r-- | games/lincity/files/patch-pixmap.h | 11 |
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); |