mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
audio/aften and comms/usrp:
- Cleanup cmake usage games/deng: - Convert to USE_CMAKE - Convert to new options framework and remove autodetection for openal option - Trip header Approved by: portmgr (bapt)
This commit is contained in:
parent
1afe62d262
commit
0449c7bcb0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314666
@ -11,12 +11,8 @@ COMMENT= ATSC A/52 audio encoder
|
||||
|
||||
USE_BZIP2= yes
|
||||
|
||||
BUILDDIR= ${WRKSRC}/portbuild
|
||||
BUILD_WRKSRC= ${BUILDDIR}
|
||||
INSTALL_WRKSRC= ${BUILDDIR}
|
||||
|
||||
USE_CMAKE= yes
|
||||
CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX:STRING="${PREFIX}"
|
||||
CMAKE_OUTSOURCE= yes
|
||||
|
||||
OPTIONS_DEFINE= SHARED_LIB CXX_BINDINGS DOUBLE
|
||||
OPTIONS_DEFAULT=
|
||||
@ -50,8 +46,4 @@ PLIST_SUB+= LIBS="@comment "
|
||||
CMAKE_ARGS+= -DDOUBLE:BOOL=ON
|
||||
.endif
|
||||
|
||||
do-configure:
|
||||
@${MKDIR} ${BUILDDIR}
|
||||
@cd ${BUILDDIR}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ..
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -23,6 +23,7 @@ USE_CMAKE= yes
|
||||
USE_GMAKE= yes
|
||||
USE_LDCONFIG= yes
|
||||
CMAKE_OUTSOURCE= yes
|
||||
CMAKE_SOURCE_PATH= ${WRKSRC}/host
|
||||
|
||||
# for excruciating debug use this -db
|
||||
CMAKE_ARGS= --debug-output --trace
|
||||
@ -63,12 +64,6 @@ PLIST_SUB+= PUSRP2=""
|
||||
PLIST_SUB+= PUSRP2="@comment "
|
||||
.endif
|
||||
|
||||
do-configure:
|
||||
# Configure the cmake portion of the host build
|
||||
${MKDIR} ${CONFIGURE_WRKSRC}
|
||||
cd ${CONFIGURE_WRKSRC}; ${SETENV} ${CMAKE_ENV} \
|
||||
${CMAKE_BIN} ${CMAKE_ARGS} ${WRKSRC}/host
|
||||
|
||||
do-build:
|
||||
# build host component
|
||||
(export PATH=${LOCALBASE}/zpu/bin:${PATH};cd ${CONFIGURE_WRKSRC}&&${GMAKE})
|
||||
|
@ -1,9 +1,5 @@
|
||||
# New ports collection makefile for: deng
|
||||
# Date created: 25 Aug 2004
|
||||
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
|
||||
#
|
||||
# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= deng
|
||||
PORTVERSION= 1.9.0b6.9
|
||||
@ -25,26 +21,26 @@ USE_LDCONFIG= yes
|
||||
USE_SDL= sdl mixer net
|
||||
USE_XORG= x11
|
||||
USE_PYTHON= yes
|
||||
|
||||
BUILDDIR= ${WRKSRC}/doomsday/portbuild
|
||||
BUILD_WRKSRC= ${BUILDDIR}
|
||||
INSTALL_WRKSRC= ${BUILDDIR}
|
||||
|
||||
USE_CMAKE= yes
|
||||
CMAKE_OUTSOURCE= yes
|
||||
CMAKE_SOURCE_PATH= ${WRKSRC}/doomsday
|
||||
CFLAGS+= -I${LOCALBASE}/include/libpng15
|
||||
CMAKE_ARGS+= -DCMAKE_EXE_LINKER_FLAGS:STRING="-Wl,--export-dynamic"
|
||||
|
||||
MAN6= doomsday.6
|
||||
|
||||
OPTIONS= OPENAL "Build OpenAL sound plugin" off
|
||||
OPTIONS_DEFINE= OPENAL DOCS
|
||||
OPTIONS_DEFAULT= DOCS
|
||||
OPENAL_DESC= Build OpenAL sound plugin
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if defined(WITH_OPENAL) || exists(${LOCALBASE}/lib/libopenal.so)
|
||||
.if ${PORT_OPTIONS:MOPENAL}
|
||||
USE_OPENAL= al
|
||||
CMAKE_ARGS+= -DBUILDOPENAL:BOOL=ON
|
||||
PLIST_SUB= OPENAL=""
|
||||
.else
|
||||
CMAKE_ARGS+= -DBUILDOPENAL:BOOL=OFF
|
||||
PLIST_SUB= OPENAL="@comment "
|
||||
.endif
|
||||
|
||||
@ -54,18 +50,14 @@ post-patch:
|
||||
-e '/TARGET_LINK_LIBRARIES/s/dl//' \
|
||||
${WRKSRC}/doomsday/CMakeLists.txt
|
||||
|
||||
do-configure:
|
||||
@${MKDIR} ${BUILDDIR}
|
||||
@cd ${BUILDDIR}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ..
|
||||
|
||||
post-install:
|
||||
@${LN} -s ${PREFIX}/bin/doomsday ${PREFIX}/bin/deng
|
||||
${INSTALL_MAN} ${WRKSRC}/doomsday/engine/doc/doomsday.6 ${MANPREFIX}/man/man6/
|
||||
.ifndef (NOPORTDOCS)
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for i in LICENSE changelog.txt cnsname.txt cvars.txt deddoc.txt dhistory.txt naming.txt network.txt
|
||||
${INSTALL_DATA} ${WRKSRC}/doomsday/engine/doc/${i} ${DOCSDIR}/
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user