svn commit: r337083 - in head/games/xminehunter: . files
Pawel Pekala
pawel at FreeBSD.org
Fri Dec 20 19:43:06 UTC 2013
Author: pawel
Date: Fri Dec 20 19:43:05 2013
New Revision: 337083
URL: http://svnweb.freebsd.org/changeset/ports/337083
Log:
- Respect CXX/CXXFLAGS
- Add desktop entry file
PR: ports/184883
Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Deleted:
head/games/xminehunter/files/
Modified:
head/games/xminehunter/Makefile (contents, props changed)
head/games/xminehunter/pkg-plist (contents, props changed)
Modified: head/games/xminehunter/Makefile
==============================================================================
--- head/games/xminehunter/Makefile Fri Dec 20 19:31:11 2013 (r337082)
+++ head/games/xminehunter/Makefile Fri Dec 20 19:43:05 2013 (r337083)
@@ -3,17 +3,44 @@
PORTNAME= xminehunter
PORTVERSION= 0.4
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_XCONTRIB}
-MASTER_SITE_SUBDIR= games
+MASTER_SITES= XCONTRIB/games
MAINTAINER= ports at FreeBSD.org
COMMENT= Motif minesweeper game
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
USES= motif
USE_XORG= xpm
-WRKSRC= ${WRKDIR}/xminehunter
-ALL_TARGET= xminehunter
+ALL_TARGET= ${PORTNAME}
+
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+DESKTOP_ENTRIES="XMineHunter" "" "${PREFIX}/share/pixmaps/${PORTNAME}.xpm" \
+ "${PORTNAME}" "" ""
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ '/^INSTALL_BIN/s|=.*|= $${PREFIX}/bin| ; \
+ /^INSTALL_SCORE/s|=.*|= $${PREFIX}/lib/X11/${PORTNAME}| ; \
+ /^INCLUDES/s|-I/.*/include|$${CPPFLAGS}| ; \
+ /^LIBS/s|-L/.*/lib|$${LDFLAGS}| ; \
+ s|-lXm |$${MOTIFLIB} | ; \
+ s|^CC =|CXX ?=| ; \
+ s|^CFLAGS =|CXXFLAGS +=| ; \
+ s|$${CC}|$${CXX}| ; \
+ s|$${CFLAGS}|$${CXXFLAGS}| ; \
+ s| \($${INSTALL_SCORE_PATH}\)| $${DESTDIR}\1| ; \
+ s|chmod 333|chmod 633| ; \
+ s|cp |$${BSD_INSTALL_DATA} | ; \
+ s| \($${INSTALL_BIN_PATH}\)| $${DESTDIR}\1|' \
+ ${WRKSRC}/${MAKEFILE}
+
+post-install:
+ (cd ${WRKSRC}/bitmaps && ${INSTALL_DATA} normal.xpm \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.xpm)
.include <bsd.port.mk>
Modified: head/games/xminehunter/pkg-plist
==============================================================================
--- head/games/xminehunter/pkg-plist Fri Dec 20 19:31:11 2013 (r337082)
+++ head/games/xminehunter/pkg-plist Fri Dec 20 19:43:05 2013 (r337083)
@@ -1,4 +1,5 @@
bin/xminehunter
- at exec mkdir %D/lib/X11/xminehunter
+share/pixmaps/xminehunter.xpm
+ at exec mkdir -p %D/lib/X11/xminehunter
@exec chmod 333 %D/lib/X11/xminehunter
- at dirrm lib/X11/xminehunter
+ at dirrmtry lib/X11/xminehunter
More information about the svn-ports-all
mailing list