Changeset View
Changeset View
Standalone View
Standalone View
mixxx/Makefile
# Created by: Jean-Yves Lefort <jylefort@brutele.be> | # Created by: Jean-Yves Lefort <jylefort@brutele.be> | ||||
mat: The only case where you can remove this line is if the person in it asked you to. In all other… | |||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= mixxx | PORTNAME= mixxx | ||||
PORTVERSION= 2.0.0 | DISTVERSION= 2.1.4 | ||||
DISTVERSIONSUFFIX= -src | DISTVERSIONPREFIX= release- | ||||
Done Inline ActionsYou should probably be using DISTVERSION. mat: You should probably be using DISTVERSION. | |||||
Done Inline ActionsThis should probably be DISTVERSION. mat: This should probably be DISTVERSION. | |||||
PORTREVISION= 6 | |||||
CATEGORIES= audio | CATEGORIES= audio | ||||
MASTER_SITES= http://downloads.mixxx.org/${PORTNAME}-${PORTVERSION}/ | |||||
Done Inline ActionsThe distribution file name is too generic, please use DIST_SUBDIR. mat: The distribution file name is too generic, please use `DIST_SUBDIR`. | |||||
Done Inline ActionsNot required, could be removed. mat: Not required, could be removed. | |||||
MAINTAINER= acm@FreeBSD.org | MAINTAINER= acm@FreeBSD.org | ||||
COMMENT= DJ mixing application | COMMENT= DJ mixing application | ||||
LICENSE= GPLv2+ | LICENSE= GPLv2+ | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
IGNORE= it will be updated to mixxx 2.1.0. FLAVOR needs portmgr approval | BROKEN_aarch64= fails to compile: Exception("invalid machine type") | ||||
BROKEN_powerpc64= fails to configure: unmet dependencies: Could not find libprotobuf, libchromaprint, libmp4, and libwavpack | |||||
LIB_DEPENDS= libchromaprint.so:audio/chromaprint \ | LIB_DEPENDS= libchromaprint.so:audio/chromaprint \ | ||||
Done Inline ActionsWrong place in the Makefile. See Chapter 15. Order of Variables in Port Makefiles. mat: Wrong place in the Makefile. See [[ https://www.freebsd.org/doc/en/books/porters… | |||||
libFLAC.so:audio/flac \ | libFLAC.so:audio/flac \ | ||||
libfftw3.so:math/fftw3 \ | |||||
libid3tag.so:audio/libid3tag \ | libid3tag.so:audio/libid3tag \ | ||||
libmad.so:audio/libmad \ | libmad.so:audio/libmad \ | ||||
libportaudio.so:audio/portaudio \ | libportaudio.so:audio/portaudio \ | ||||
libSoundTouch.so:audio/soundtouch \ | |||||
libebur128.so:audio/libebur128 \ | |||||
librubberband.so:audio/rubberband \ | librubberband.so:audio/rubberband \ | ||||
libsndfile.so:audio/libsndfile \ | libsndfile.so:audio/libsndfile \ | ||||
libvamp-sdk.so:audio/vamp-plugin-sdk \ | libvamp-sdk.so:audio/vamp-plugin-sdk \ | ||||
libogg.so:audio/libogg \ | |||||
libvorbisfile.so:audio/libvorbis \ | libvorbisfile.so:audio/libvorbis \ | ||||
libtag.so:audio/taglib \ | libtag.so:audio/taglib \ | ||||
libprotobuf.so:devel/protobuf | libprotobuf.so:devel/protobuf | ||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} | FLAVORS= qt4 qt5 | ||||
FLAVOR?= ${FLAVORS:[1]} | |||||
Done Inline ActionsWrong place in the Makefile. See Chapter 15. Order of Variables in Port Makefiles. mat: Wrong place in the Makefile. See [[ https://www.freebsd.org/doc/en/books/porters… | |||||
BROKEN_aarch64= fails to compile: Exception("invalid machine type") | qt4_PKGNAMESUFFIX=-qt4 | ||||
Done Inline ActionsWrong place in the Makefile. See Chapter 15. Order of Variables in Port Makefiles. mat: Wrong place in the Makefile. See [[ https://www.freebsd.org/doc/en/books/porters… | |||||
BROKEN_powerpc64= fails to configure: unmet dependencies: Could not find libprotobuf, libchromaprint, libmp4, and libwavpack | qt5_PKGNAMESUFFIX=-qt5 | ||||
Done Inline ActionsWrong place in the Makefile. mat: Wrong place in the Makefile. | |||||
USES= scons iconv pkgconfig | USES= scons iconv pkgconfig | ||||
Done Inline ActionsWrong place in the Makefile. mat: Wrong place in the Makefile. | |||||
USE_QT4= corelib gui network opengl script scripttools sql sql-sqlite3 \ | USE_XORG= x11 | ||||
svg testlib xml xmlpatterns linguisttools_build moc_build \ | |||||
qmake_build rcc_build uic_build | |||||
USE_GL= gl glu | USE_GL= gl glu | ||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= mixxxdj | |||||
Done Inline ActionsThere is a release-2.1.1 you can use: DISTVERSIONPREFIX= release- mat: There is a `release-2.1.1` you can use:
```
DISTVERSIONPREFIX= release-
``` | |||||
CONFLICTS= mixxx20* | |||||
MAKE_ARGS= qtdir="${PREFIX}" install_root="${PREFIX}" \ | MAKE_ARGS= qtdir="${PREFIX}" install_root="${PREFIX}" \ | ||||
build=release optimize=native | build=release optimize=native ${GUI} battery=0 | ||||
LATE_INSTALL_ARGS= --install-sandbox=${STAGEDIR} | LATE_INSTALL_ARGS= --install-sandbox=${STAGEDIR} | ||||
.if ${FLAVOR} == qt4 | |||||
USES+= qt:4 | |||||
Done Inline ActionsWrong place in the Makefile. mat: Wrong place in the Makefile. | |||||
USE_QT= corelib dbus gui network opengl script scripttools sql sql-sqlite3 \ | |||||
svg testlib xml xmlpatterns linguisttools_build moc_build \ | |||||
qmake_build rcc_build testlib uic_build | |||||
GUI= qt4=1 | |||||
.endif | |||||
.if ${FLAVOR} == qt5 | |||||
USES+= qt:5 | |||||
USE_QT= buildtools concurrent core dbus gui network opengl script scripttools \ | |||||
sql sql-sqlite3 svg testlib xml xmlpatterns linguisttools_build \ | |||||
qmake_build widgets | |||||
GUI= qt5=1 | |||||
.endif | |||||
PORTDATA= * | PORTDATA= * | ||||
PORTDOCS= * | PORTDOCS= * | ||||
OPTIONS_DEFINE= DOCS FAAD GPERFTOOLS HID LAME OPUS SHOUTCAST WAVPACK | OPTIONS_DEFINE= DOCS FAAD GPERFTOOLS HID LAME OPUS SHOUTCAST WAVPACK | ||||
OPTIONS_DEFAULT= FAAD HID SHOUTCAST OPUS WAVPACK | OPTIONS_DEFAULT= FAAD HID SHOUTCAST OPUS WAVPACK | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
Done Inline ActionsWrong place in the Makefile. mat: Wrong place in the Makefile. | |||||
FAAD_LIB_DEPENDS= libfaad.so:audio/faad \ | FAAD_LIB_DEPENDS= libfaad.so:audio/faad \ | ||||
libmp4v2.so:multimedia/mp4v2 | libmp4v2.so:multimedia/mp4v2 | ||||
FAAD_MAKE_ARGS= faad=1 | FAAD_MAKE_ARGS= faad=1 | ||||
FAAD_MAKE_ARGS_OFF= faad=0 | FAAD_MAKE_ARGS_OFF= faad=0 | ||||
GPERFTOOLS_LIB_DEPENDS= libtcmalloc.so:devel/google-perftools | GPERFTOOLS_LIB_DEPENDS= libtcmalloc.so:devel/google-perftools | ||||
GPERFTOOLS_MAKE_ARGS= perftools=1 | GPERFTOOLS_MAKE_ARGS= perftools=1 | ||||
GPERFTOOLS_MAKE_ARGS_OFF= perftools=0 | GPERFTOOLS_MAKE_ARGS_OFF= perftools=0 | ||||
HID_DESC= USB HID controllers support | HID_DESC= USB HID controllers support | ||||
HID_MAKE_ARGS= hid=1 | HID_MAKE_ARGS= hid=1 | ||||
HID_MAKE_ARGS_OFF= hid=0 | HID_MAKE_ARGS_OFF= hid=0 | ||||
LAME_RUN_DEPENDS= lame:audio/lame | LAME_RUN_DEPENDS= lame:audio/lame | ||||
OPUS_LIB_DEPENDS= libopus.so:audio/opus \ | OPUS_LIB_DEPENDS= libopus.so:audio/opus \ | ||||
libopusfile.so:audio/opusfile | libopusfile.so:audio/opusfile | ||||
OPUS_MAKE_ARGS= opus=1 | OPUS_MAKE_ARGS= opus=1 | ||||
OPUS_MAKE_ARGS_OFF= opus=0 | OPUS_MAKE_ARGS_OFF= opus=0 | ||||
SHOUTCAST_LIB_DEPENDS= libshout.so:audio/libshout | SHOUTCAST_LIB_DEPENDS= libshout.so:audio/libshout | ||||
SHOUTCAST_MAKE_ARGS= shoutcast=1 | SHOUTCAST_MAKE_ARGS= shoutcast=1 | ||||
SHOUTCAST_MAKE_ARGS_OFF= shoutcast=0 | SHOUTCAST_MAKE_ARGS_OFF= shoutcast=0 | ||||
WAVPACK_LIB_DEPENDS= libwavpack.so:audio/wavpack | WAVPACK_LIB_DEPENDS= libwavpack.so:audio/wavpack | ||||
WAVPACK_MAKE_ARGS= wv=1 | WAVPACK_MAKE_ARGS= wv=1 | ||||
WAVPACK_MAKE_ARGS_OFF= wv=0 | WAVPACK_MAKE_ARGS_OFF= wv=0 | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g ; \ | @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g ; \ | ||||
s|%%PREFIX%%|${PREFIX}|g" \ | s|%%PREFIX%%|${PREFIX}|g" \ | ||||
${WRKSRC}/build/depends.py | ${WRKSRC}/build/depends.py | ||||
@${REINPLACE_CMD} -e "s|bzr |true |g" \ | @${REINPLACE_CMD} -e "s|bzr |true |g" \ | ||||
${WRKSRC}/build/util.py | ${WRKSRC}/build/util.py | ||||
@${REINPLACE_CMD} -e "/('install', docs)/d" \ | @${REINPLACE_CMD} -e "/('install', docs)/d" \ | ||||
${WRKSRC}/src/SConscript | ${WRKSRC}/src/SConscript | ||||
@${REINPLACE_CMD} -e "s|^Exec=.*|Exec=mixxx| ; \ | @${REINPLACE_CMD} -e "s|^Exec=.*|Exec=mixxx| ; \ | ||||
s|^Icon=.*|Icon=${PREFIX}/share/pixmaps/mixxx-icon.png|" \ | s|^Icon=.*|Icon=${PREFIX}/share/pixmaps/mixxx-icon.png|" \ | ||||
${WRKSRC}/res/linux/mixxx.desktop | ${WRKSRC}/res/linux/mixxx.desktop | ||||
.for i in midi/midimessage.h qtscript-bytearray/bytearrayclass.h | @${REINPLACE_CMD} -e "s,(Q_OS_LINUX),(Q_OS_LINUX) || defined(Q_OS_FREEBSD),g" \ | ||||
${WRKSRC}/src/util/screensaver.h | |||||
.for i in midi/midimessage.h | |||||
Done Inline ActionsWrong place in the Makefile. See Chapter 15. Order of Variables in Port Makefiles. mat: Wrong place in the Makefile. See [[ https://www.freebsd.org/doc/en/books/porters… | |||||
@${ECHO_CMD} >> ${WRKSRC}/src/controllers/${i} | @${ECHO_CMD} >> ${WRKSRC}/src/controllers/${i} | ||||
.endfor | .endfor | ||||
post-install: | post-install: | ||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mixxx | @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mixxx | ||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mixxx/plugins/*/*.so | @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mixxx/plugins/*/*.so | ||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/mixxx/plugins/soundsource | @${MKDIR} ${STAGEDIR}${PREFIX}/lib/mixxx/plugins/soundsource | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
.for i in Mixxx-Manual.pdf README README.md | .for i in Mixxx-Manual.pdf README README.md | ||||
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \ | (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \ | ||||
${STAGEDIR}${DOCSDIR}) | ${STAGEDIR}${DOCSDIR}) | ||||
.endfor | .endfor | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/doc/HID | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
.for i in *.odt *.pdf | cd ${WRKSRC} && ${INSTALL_DATA} Mixxx-Manual.pdf \ | ||||
(cd ${WRKSRC}/doc/HID && ${INSTALL_DATA} ${i} \ | ${STAGEDIR}${DOCSDIR} | ||||
${STAGEDIR}${DOCSDIR}/doc/HID) | |||||
.endfor | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
The only case where you can remove this line is if the person in it asked you to. In all other cases, it is write-only.