From owner-svn-ports-all@FreeBSD.ORG Fri Dec 20 19:43:06 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 22C886B7; Fri, 20 Dec 2013 19:43:06 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E914B1451; Fri, 20 Dec 2013 19:43:05 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBKJh5E7008234; Fri, 20 Dec 2013 19:43:05 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBKJh5dL008230; Fri, 20 Dec 2013 19:43:05 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201312201943.rBKJh5dL008230@svn.freebsd.org> From: Pawel Pekala Date: Fri, 20 Dec 2013 19:43:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337083 - in head/games/xminehunter: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2013 19:43:06 -0000 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 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@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 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 -@exec mkdir %D/lib/X11/xminehunter +share/pixmaps/xminehunter.xpm +@exec mkdir -p %D/lib/X11/xminehunter @exec chmod 333 %D/lib/X11/xminehunter -@dirrm lib/X11/xminehunter +@dirrmtry lib/X11/xminehunter