mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
9d69aa89c1
The package by make package will install fine but it's not possible to start the game. make install runs T.o.M.Es own install script which changes file permissions. This is not done using the binary package. To fix this I have added the corresponding @exec directives to the pkg-plist. While here I added the creation of the plot directory which is not part of the binary package. While here I replaced @dirrm with @dirrmtry directives to make the deinstall less verbose. Problem is T.o.M.E spams the %%DATADIR%% so it won't deinstall cleanly. To make the user aware of this I added a pkg-deinstall script which will emit a corresponding message. PR: ports/125194 Submitted by: Tobias Rehbein <tobias.rehbein@web.de> Approved by: Peter Thoenen <peter.thoenen@yahoo.com>
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# New ports collection makefile for: tome
|
|
# Date created: 04 Nov 2002
|
|
# Whom: kris@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tome
|
|
PORTVERSION= 2.3.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://t-o-m-e.net/dl/src/
|
|
DISTNAME= tome-235-src
|
|
|
|
MAINTAINER= peter.thoenen@yahoo.com
|
|
COMMENT= Roguelike dungeon exploration game based on JRR Tolkien's works
|
|
|
|
SUB_FILES= pkg-deinstall
|
|
|
|
ALL_TARGET= # empty
|
|
MAKEFILE= makefile.bsd
|
|
USE_GMAKE= yes
|
|
USE_BZIP2= yes
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
OPTIONS= X11 "Turn on support for X" on
|
|
DESKTOP_ENTRIES= "ToME" "Roguelike game based on JRR Tolkien's work" \
|
|
"${DATADIR}/xtra/graf/tome-128.png" \
|
|
"tome -v -g" "Application;Game;RolePlaying;" \
|
|
false
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.ifndef (WITHOUT_X11)
|
|
USE_XORG= x11
|
|
.endif
|
|
|
|
post-patch:
|
|
.ifdef (WITHOUT_X11)
|
|
${REINPLACE_CMD} -e 's/-DUSE_X11//g' ${WRKSRC}/${MAKEFILE}
|
|
${REINPLACE_CMD} -e 's/-lX11//g' ${WRKSRC}/${MAKEFILE}
|
|
${REINPLACE_CMD} -e 's@-L$$(LOCALBASE)/lib@@g' ${WRKSRC}/${MAKEFILE}
|
|
${REINPLACE_CMD} -e 's@-I$$(LOCALBASE)/include@@g' ${WRKSRC}/${MAKEFILE}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|