aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/xfontselector/Makefile
blob: fc8a2ed805a4f02e65ff251beb7a2c4db66488ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# ex:ts=8
# Ports collection makefile for:    xfontselector
# Date created:         May 23, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   xfontselector
PORTVERSION=    0.9.4
CATEGORIES= x11-fonts
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-${PORTVERSION:R}-4

MAINTAINER= kde@freebsd.org
COMMENT=    X Font Selector

USE_REINPLACE=  yes
USE_X_PREFIX=   yes
USE_QT_VER= 2
MAKE_ENV=   CXX="${CXX} ${QTCPPFLAGS} -I${X11BASE}/include" \
        LIBS="${QTCFGLIBS} -L${X11BASE}/lib"
ALL_TARGET= # empty

MAN1=   xfontselector.1

post-patch:
    @${REINPLACE_CMD} -e "s,^CXX,#CXX,g ; s,^CXXFLAGS,#CXXFLAGS,g ; \
        s,^LIBS=,LIBS+=,g ; s,-lqt,-lqt2,g ; \
        s,moc ,${MOC} ,g" ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>