mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
Simplify the Makefile by switching to USES=qmake.
* This allows us to get rid of both manually specified targets. * As no PLIST_SUBS are used, also OPTIONS_SUB can be dropped. * Further, do not use QT_BINDIR and install the manpage to man/ intead of share/man. PR: 214621 Approved by: rakuco (mentor), takefu (maintainer)
This commit is contained in:
parent
deef997597
commit
65c15d2d54
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427006
1 changed files with 5 additions and 16 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
PORTNAME= dream
|
||||
PORTVERSION= 2.1.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= audio comms hamradio
|
||||
MASTER_SITES= SF/drm/${PORTNAME}/${PORTVERSION}
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-svn808
|
||||
|
@ -15,16 +16,14 @@ LIB_DEPENDS= libhamlib.so:comms/hamlib\
|
|||
libqwt.so:x11-toolkits/qwt5\
|
||||
libfftw3.so:math/fftw3
|
||||
|
||||
USES= gmake pkgconfig qmake
|
||||
USE_QT4= qmake_build moc_build uic_build corelib gui network rcc webkit
|
||||
QT4_MAKE_ARGS= INSTALL_ROOT=${STAGEDIR}
|
||||
USES= gmake pkgconfig
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
OPTIONS_DEFINE= SNDFILE OGG VORBIS FLAC OPUS SPEEX FAAD FAAC
|
||||
OPTIONS_RADIO= DEVICE
|
||||
OPTIONS_RADIO_DEVICE= PORTAUDIO PULSEAUDIO
|
||||
OPTIONS_DEFAULT= PORTAUDIO SNDFILE
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
|
||||
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
|
||||
|
@ -38,22 +37,12 @@ SPEEX_LIB_DEPENDS= libspeexdsp.so:audio/speexdsp
|
|||
FAAD_LIB_DEPENDS= libfaad.so:audio/faad
|
||||
FAAC_LIB_DEPENDS= libfaac.so:audio/faac
|
||||
|
||||
MANDIRS= ${PREFIX}/share/man/man1
|
||||
PLIST_FILES= %%QT_BINDIR%%/dream share/man/man1/dream.1.gz
|
||||
PLIST_FILES= bin/dream man/man1/dream.1.gz
|
||||
|
||||
pre-patch:
|
||||
@${REINPLACE_CMD} -e 's|/opt|/usr|g' -e 's|/usr/local|${PREFIX}|g'\
|
||||
-e 's|target.path = /usr/bin|target.path = ${STAGEDIR}${QT_BINDIR}|g'\
|
||||
-e 's|/usr/share/man/man1|${STAGEDIR}${PREFIX}/share/man/man1|g'\
|
||||
-e 's|INSTALLS += documentation||g'\
|
||||
-e 's|target.path = /usr/bin|target.path = ${PREFIX}/bin|g'\
|
||||
-e 's|/usr/share/man/man1|${PREFIX}/man/man1|g'\
|
||||
${WRKSRC}/dream.pro
|
||||
|
||||
do-configure:
|
||||
cd ${WRKSRC} &&\
|
||||
${SETENV} ${MAKE_ENV} ${QMAKE} dream.pro ${QMAKE_ARGS}
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/linux/dream.1 ${STAGEDIR}${PREFIX}/share/man/man1/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue