Lines 1-52
Link Here
|
1 |
# New ports collection makefile for: kports |
|
|
2 |
# Date created: Thu Jan 12 12:47:58 UTC 2006 |
3 |
# Whom: Hannes Hauswedell <hannes.hauswedell@gmail.com> |
4 |
# |
5 |
# $FreeBSD: ports/ports-mgmt/kports-qt4/Makefile,v 1.13 2009/08/18 13:05:32 makc Exp $ |
6 |
# |
7 |
|
8 |
PORTNAME= kports |
9 |
PORTVERSION= 0.8.1 |
10 |
PORTREVISION= 1 |
11 |
CATEGORIES= ports-mgmt kde |
12 |
MASTER_SITES= SF |
13 |
|
14 |
MAINTAINER= kports@soulrebel.in-berlin.de |
15 |
COMMENT= Qt4-Version of your favorite frontend to the Ports |
16 |
|
17 |
RUN_DEPENDS= portaudit:${PORTSDIR}/ports-mgmt/portaudit |
18 |
|
19 |
CONFLICTS= kports-0.[0-7]* |
20 |
|
21 |
USE_BZIP2= yes |
22 |
|
23 |
USE_QT_VER= 4 |
24 |
QT_COMPONENTS= corelib gui network qmake_build moc_build uic_build rcc_build |
25 |
QMAKE_ARGS+= PREFIX=${PREFIX} |
26 |
MAKE_JOBS_SAFE= yes |
27 |
|
1 |
|
28 |
HAS_CONFIGURE= yes |
2 |
|
|
|
3 |
PORTNAME= kports |
4 |
PORTVERSION= 0.8.2 |
5 |
PORTREVISION= 0 |
6 |
CATEGORIES= ports-mgmt kde |
7 |
MASTER_SITES= SF |
8 |
|
9 |
MAINTAINER= kports@soulrebel.in-berlin.de |
10 |
COMMENT= Qt4-Version of your favorite frontend to the Ports |
11 |
|
12 |
CONFLICTS= kports-0.[0-7]* |
13 |
|
14 |
USE_BZIP2= yes |
15 |
|
16 |
USE_QT_VER= 4 |
17 |
USE_GMAKE= yes |
18 |
QT_COMPONENTS= corelib gui network qmake_build moc_build uic_build rcc_build |
19 |
QMAKE_ARGS+= PREFIX=${PREFIX} |
20 |
MAKE_JOBS_SAFE= yes |
21 |
HAS_CONFIGURE= yes |
29 |
|
22 |
|
30 |
LATEST_LINK= kports-qt4 |
23 |
LATEST_LINK= kports-qt4 |
31 |
|
24 |
|
|
|
25 |
RUN_DEPENDS+= portaudit:${PORTSDIR}/ports-mgmt/portaudit \ |
26 |
uma:${PORTSDIR}/sysutils/bsdadminscripts |
27 |
|
28 |
|
32 |
OPTIONS= DEBUG "Add Debugging Symbols" off \ |
29 |
OPTIONS= DEBUG "Add Debugging Symbols" off \ |
33 |
KDE "Pull in kdebase-runtime" on |
30 |
OXYGEN "Pull in Oxygen icons (recommended)" on \ |
|
|
31 |
KDEBASE "Pull in kdebase-runtime for kdesu" on |
34 |
|
32 |
|
35 |
.include <bsd.port.pre.mk> |
33 |
.include <bsd.port.pre.mk> |
36 |
|
34 |
|
37 |
.if !defined(WITHOUT_KDE) |
35 |
.if !defined(WITHOUT_OXYGEN) |
38 |
RUN_DEPENDS+= ${LOCALBASE}/kde4/lib/kde4/libexec/kdesu:${PORTSDIR}/x11/kdebase4-runtime \ |
36 |
RUN_DEPENDS+= ${LOCALBASE}/kde4/share/icons/oxygen/index.theme:${PORTSDIR}/x11-themes/kde4-icons-oxygen |
39 |
${LOCALBASE}/kde4/share/icons/oxygen/index.theme:${PORTSDIR}/x11-themes/kde4-icons-oxygen |
37 |
.endif |
40 |
.else |
38 |
|
41 |
PKGMESSAGE= pkg-message.nokdebase |
39 |
.if !defined(WITHOUT_KDEBASE) |
|
|
40 |
RUN_DEPENDS+= ${LOCALBASE}/kde4/lib/kde4/libexec/kdesu:${PORTSDIR}/x11/kdebase4-runtime |
42 |
.endif |
41 |
.endif |
43 |
|
42 |
|
|
|
43 |
|
44 |
post-patch: |
44 |
post-patch: |
45 |
${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/data/kports.desktop |
45 |
${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/data/kports.desktop |
46 |
|
46 |
|
47 |
.if defined(WITH_DEBUG) |
47 |
.if defined(WITH_DEBUG) |
48 |
pre-configure: |
48 |
pre-configure: |
49 |
@(${ECHO_CMD} "CONFIG += debug" >> ${WRKSRC}/src/src.pro) |
49 |
@(${ECHO_CMD} "CONFIG += debug" >> ${WRKSRC}/src/src.pro) |
|
|
50 |
@(${ECHO_CMD} "CONFIG -= release warn_off" >> ${WRKSRC}/src/src.pro) |
51 |
@(${ECHO_CMD} "CONFIG += debug warn_on" >> ${WRKSRC}/src/src.pro) |
52 |
@(${ECHO_CMD} "DEFINES -= QT_NO_DEBUG_OUTPUT" >> ${WRKSRC}/src/src.pro) |
50 |
.endif |
53 |
.endif |
51 |
|
54 |
|
52 |
do-configure: |
55 |
do-configure: |
Lines 54-61
Link Here
|
54 |
${QMAKE} -unix ${QMAKE_ARGS} kports.pro |
57 |
${QMAKE} -unix ${QMAKE_ARGS} kports.pro |
55 |
|
58 |
|
56 |
post-install: |
59 |
post-install: |
57 |
.if defined(WITHOUT_KDE) |
60 |
.if defined(WITHOUT_OXYGEN) |
58 |
@${CAT} ${PKGMESSAGE} |
61 |
@${CAT} pkg-message.nooxygen |
|
|
62 |
.endif |
63 |
|
64 |
.if defined(WITHOUT_KDEBASE) |
65 |
@${CAT} pkg-message.nokdebase |
59 |
.endif |
66 |
.endif |
60 |
|
67 |
|
|
|
68 |
|
69 |
|
61 |
.include <bsd.port.post.mk> |
70 |
.include <bsd.port.post.mk> |