Date: Wed, 25 Dec 2013 19:45:08 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337448 - in head/games/tuxpuck: . files Message-ID: <201312251945.rBPJj86m077782@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Wed Dec 25 19:45:08 2013 New Revision: 337448 URL: http://svnweb.freebsd.org/changeset/ports/337448 Log: Respect CC PR: ports/184231 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Modified: head/games/tuxpuck/Makefile head/games/tuxpuck/files/patch-Makefile (contents, props changed) Modified: head/games/tuxpuck/Makefile ============================================================================== --- head/games/tuxpuck/Makefile Wed Dec 25 19:39:39 2013 (r337447) +++ head/games/tuxpuck/Makefile Wed Dec 25 19:45:08 2013 (r337448) @@ -22,15 +22,19 @@ USES= gmake ALL_TARGET= ${PORTNAME} MAKE_JOBS_UNSAFE= yes -CFLAGS+= -I${LOCALBASE}/include/libpng15 - PLIST_FILES= bin/${PORTNAME} man/man6/tuxpuck.6.gz post-patch: - cd ${WRKSRC}; \ - ${REINPLACE_CMD} 's|timer_create|_timer_create|g' \ - tuxpuck.c video.c timer.c intro.c tuxpuck.h - ${REINPLACE_CMD} -e 's|sdl-config|$$(SDL_CONFIG)|g' ${WRKSRC}/utils/Makefile +.for i in intro.c timer.c tuxpuck.c tuxpuck.h video.c + @${REINPLACE_CMD} -e \ + 's|timer_create|_timer_create|g' ${WRKSRC}/${i} +.endfor +.for i in data utils + @${REINPLACE_CMD} -e \ + 's|^CC|#CC| ; \ + s|^CFLAGS|#CFLAGS| ; \ + s|sdl-config|$$(SDL_CONFIG)|' ${WRKSRC}/${i}/Makefile +.endfor do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin Modified: head/games/tuxpuck/files/patch-Makefile ============================================================================== --- head/games/tuxpuck/files/patch-Makefile Wed Dec 25 19:39:39 2013 (r337447) +++ head/games/tuxpuck/files/patch-Makefile Wed Dec 25 19:45:08 2013 (r337448) @@ -16,12 +16,12 @@ %.o : %.c - $(CC) $(CFLAGS) `sdl-config --cflags` -c -o $@ $< -+ $(CC) $(CFLAGS) `$(SDL_CONFIG) --cflags` -c -o $@ $< ++ $(CC) $(CFLAGS) `$(SDL_CONFIG) --cflags` `libpng-config --cflags` -c -o $@ $< $(NAME) : $(OBJS) cd data; $(MAKE) - $(CC) $(CFLAGS) $(OBJS) data/libdata.a `sdl-config --libs` -lm -lpng \ -+ $(CC) $(CFLAGS) $(OBJS) data/libdata.a `$(SDL_CONFIG) --libs` -lm -lpng \ ++ $(CC) $(CFLAGS) $(OBJS) data/libdata.a `$(SDL_CONFIG) --libs` `libpng-config --libs` -lm \ -ljpeg -lz -lvorbisfile -lvorbis -logg -o $(NAME) w32icon.o : data/icons/tuxpuck.ico
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312251945.rBPJj86m077782>