71 lines
1.6 KiB
Makefile
71 lines
1.6 KiB
Makefile
# New ports collection makefile for: kports
|
|
# Date created: Thu Jan 12 12:47:58 UTC 2006
|
|
# Whom: Hannes Hauswedell <hannes.hauswedell@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= kports
|
|
PORTVERSION= 0.8.2
|
|
PORTREVISION= 3
|
|
CATEGORIES= ports-mgmt kde
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= kports@soulrebel.in-berlin.de
|
|
COMMENT= Qt4-Version of your favorite frontend to the Ports
|
|
|
|
RUN_DEPENDS= portaudit:${PORTSDIR}/ports-mgmt/portaudit \
|
|
uma:${PORTSDIR}/sysutils/bsdadminscripts
|
|
|
|
CONFLICTS= kports-0.[0-7]*
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_QT_VER= 4
|
|
QT_COMPONENTS= corelib gui network qmake_build moc_build uic_build rcc_build
|
|
QMAKE_ARGS+= PREFIX=${PREFIX}
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
LATEST_LINK= kports-qt4
|
|
|
|
OPTIONS= DEBUG "Add Debugging Symbols" off \
|
|
OXYGEN "Pull in Oxygen icons (recommended)" on \
|
|
KDEBASE "Pull in kdebase-runtime for kdesu" on
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if !defined(WITHOUT_OXYGEN)
|
|
USE_KDE4= oxygen
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_KDEBASE)
|
|
USE_KDE4= runtime
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/data/kports.desktop
|
|
|
|
.if defined(WITH_DEBUG)
|
|
pre-configure:
|
|
@(${ECHO_CMD} "CONFIG += debug" >> ${WRKSRC}/src/src.pro)
|
|
@(${ECHO_CMD} "CONFIG -= release warn_off" >> ${WRKSRC}/src/src.pro)
|
|
@(${ECHO_CMD} "CONFIG += debug warn_on" >> ${WRKSRC}/src/src.pro)
|
|
@(${ECHO_CMD} "DEFINES -= QT_NO_DEBUG_OUTPUT" >> ${WRKSRC}/src/src.pro)
|
|
.endif
|
|
|
|
do-configure:
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
|
${QMAKE} -unix ${QMAKE_ARGS} kports.pro
|
|
|
|
post-install:
|
|
.if defined(WITHOUT_OXYGEN)
|
|
@${CAT} pkg-message.nooxygen
|
|
.endif
|
|
|
|
.if defined(WITHOUT_KDEBASE)
|
|
@${CAT} pkg-message.nokdebase
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|