Lines 6-39
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= qhacc |
8 |
PORTNAME= qhacc |
9 |
PORTVERSION= 1.4 |
9 |
PORTVERSION= 2.4 |
10 |
CATEGORIES= misc |
10 |
CATEGORIES= misc |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
ftp://ftp.ostrich-emulators.cx/qhacc/ |
|
|
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
14 |
|
13 |
|
15 |
MAINTAINER= kde@freebsd.org |
14 |
MAINTAINER= kde@FreeBSD.org |
16 |
|
15 |
|
17 |
USE_REINPLACE= yes |
16 |
USE_QT_VER= 3 |
18 |
USE_QT_VER= 2 |
|
|
19 |
USE_X_PREFIX= yes |
17 |
USE_X_PREFIX= yes |
|
|
18 |
USE_REINPLACE= yes |
19 |
USE_GMAKE= yes |
20 |
GNU_CONFIGURE= yes |
20 |
GNU_CONFIGURE= yes |
21 |
CONFIGURE_ARGS= --with-qt-moc=${X11BASE}/bin \ |
21 |
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} |
22 |
--with-qt-libs=${X11BASE}/lib |
22 |
CONFIGURE_ARGS= --with-qt-moc=${QT_PREFIX}/bin \ |
|
|
23 |
--with-qt-libs=${QT_PREFIX}/lib |
23 |
|
24 |
|
24 |
post-extract: |
25 |
post-extract: |
25 |
@${RM} -f ${WRKSRC}/src/moc_*.cpp |
26 |
@${RM} -f ${WRKSRC}/src/moc_*.cpp |
26 |
|
27 |
|
27 |
pre-patch: |
28 |
pre-patch: |
28 |
.for file in configure src/Makefile.in |
29 |
@${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
29 |
@${REINPLACE_CMD} -e 's|/moc|/${MOC:T}|g ; \ |
30 |
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ |
30 |
s|-lqt|-l${QTNAME}|g ; \ |
31 |
's|^CXXFLAGS =.*$$|CXXFLAGS = \@CXXFLAGS\@|g' |
31 |
s|-O2 -Wall|\@CXXFLAGS\@|g' ${WRKSRC}/${file} |
|
|
32 |
.endfor |
33 |
|
32 |
|
34 |
do-install: |
33 |
do-install: |
35 |
${INSTALL_PROGRAM} ${WRKSRC}/src/qhacc ${PREFIX}/bin |
34 |
${INSTALL_PROGRAM} ${WRKSRC}/src/qhacc ${PREFIX}/bin |
36 |
@${MKDIR} ${DATADIR} |
35 |
@${MKDIR} ${DATADIR} |
|
|
36 |
${INSTALL_DATA} ${WRKSRC}/qm/*.qm ${DATADIR} |
37 |
${INSTALL_DATA} ${FILESDIR}/config ${DATADIR}/config.sample |
37 |
${INSTALL_DATA} ${FILESDIR}/config ${DATADIR}/config.sample |
38 |
.if !defined(NOPORTDOCS) |
38 |
.if !defined(NOPORTDOCS) |
39 |
@${MKDIR} ${DOCSDIR} |
39 |
@${MKDIR} ${DOCSDIR} |