Changeset View
Changeset View
Standalone View
Standalone View
comms/xcwcp/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= xcwcp | PORTNAME= xcwcp | ||||
COMMENT= X11 CW Tutor using unixcw | COMMENT= X11 CW Tutor using unixcw | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
LIB_DEPENDS= libcw.so:comms/unixcw | LIB_DEPENDS= libcw.so:comms/unixcw | ||||
MASTERDIR= ${.CURDIR}/../unixcw | MASTERDIR= ${.CURDIR}/../unixcw | ||||
PLIST= ${.CURDIR}/pkg-plist | PLIST= ${.CURDIR}/pkg-plist | ||||
USE_QT5= buildtools gui widgets qmake_build | USE_QT5= buildtools gui widgets qmake_build | ||||
USES= gettext | USES= gettext | ||||
USE_CXXSTD= c++11 | |||||
rakuco: It's a good idea to add a comment explaining why this is needed. | |||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
Not Done Inline ActionsThen maybe it should be done in qt.mk, no ? mat: Then maybe it should be done in qt.mk, no ? | |||||
Not Done Inline ActionsAdd somthing like . if ${_QT_VERSION:M5*} && ${USES:N*compiler*} USE_CXXSTD= c++11 . endif around line 291 of bsd.qt.mk? tcberner: Add somthing like
```
. if ${_QT_VERSION:M5*} && ${USES:N*compiler*}
USE_CXXSTD=… | |||||
Not Done Inline ActionsI think it's OK to leave those changes in the ports themselves; the vast majority of the ports just get the -std=c++11 bit for free via qmake and its mkspecs. The ports being patched here are either just relying on autoconf+pkgconfig or roll their own configuration system; I think it makes sense to have USE_CXXSTD so it can get removed in the future once those few ports are adjusted upstream. rakuco: I think it's OK to leave those changes in the ports themselves; the vast majority of the ports… | |||||
CONFIGURE_ARGS= --enable-xcwcp | CONFIGURE_ARGS= --enable-xcwcp | ||||
XCWCP= yes | XCWCP= yes | ||||
PLIST_FILES= bin/xcwcp \ | PLIST_FILES= bin/xcwcp \ | ||||
man/man1/xcwcp.1.gz | man/man1/xcwcp.1.gz | ||||
LDFLAGS+= -L${LOCALBASE}/lib -lintl | LDFLAGS+= -L${LOCALBASE}/lib -lintl | ||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${WRKSRC}/src/xcwcp/xcwcp ${STAGEDIR}${PREFIX}/bin/ | ${INSTALL_PROGRAM} ${WRKSRC}/src/xcwcp/xcwcp ${STAGEDIR}${PREFIX}/bin/ | ||||
${INSTALL_DATA} ${WRKSRC}/src/xcwcp/xcwcp.1 ${STAGEDIR}${MANPREFIX}/man/man1 | ${INSTALL_DATA} ${WRKSRC}/src/xcwcp/xcwcp.1 ${STAGEDIR}${MANPREFIX}/man/man1 | ||||
.include "${MASTERDIR}/Makefile" | .include "${MASTERDIR}/Makefile" |
It's a good idea to add a comment explaining why this is needed.