mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
- Support STAGEDIR
- While here, remove obsolete OSVERSION check
This commit is contained in:
parent
7a0fcad7f7
commit
af2286f896
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353288
@ -18,27 +18,19 @@ WRKSRC= ${WRKDIR}/DrCreep
|
||||
|
||||
SUB_FILES+= pkg-message
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 801000
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_stdafx.cpp
|
||||
.endif
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && ${CXX} -DFREEBSD -o ${PORTNAME} ${CXXFLAGS} \
|
||||
@(cd ${WRKSRC} && ${CXX} -DFREEBSD -o ${PORTNAME} ${CXXFLAGS} \
|
||||
`${SDL_CONFIG} --cflags --libs` -I./src src/*.cpp src/graphics/*.cpp \
|
||||
src/graphics/scale/*.cpp src/castle/*.cpp src/castle/objects/*.cpp \
|
||||
src/vic-ii/*.cpp src/resid-0.16/*.cpp src/sound/*.cpp -lcompat
|
||||
src/vic-ii/*.cpp src/resid-0.16/*.cpp src/sound/*.cpp -lcompat)
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
||||
${MKDIR} ${DATADIR}/data
|
||||
${MKDIR} ${DATADIR}/data/castle
|
||||
${MKDIR} ${DATADIR}/data/castles
|
||||
${MKDIR} ${DATADIR}/data/save
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/data
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/data/castle
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/data/castles
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/data/save
|
||||
|
||||
${INSTALL_DATA} ${WRKSRC}/run/data/char.rom ${DATADIR}/data
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
${INSTALL_DATA} ${WRKSRC}/run/data/char.rom ${STAGEDIR}${DATADIR}/data
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,10 +0,0 @@
|
||||
Index: src/stdafx.cpp
|
||||
@@ -374,7 +374,7 @@
|
||||
|
||||
string findType;
|
||||
|
||||
-int file_select(const struct dirent *entry) {
|
||||
+int file_select(struct dirent *entry) {
|
||||
string name = entry->d_name;
|
||||
|
||||
transform( name.begin(), name.end(), name.begin(), ::toupper );
|
Loading…
Reference in New Issue
Block a user