summaryrefslogtreecommitdiff
path: root/x11-toolkits/xclasses/Makefile
blob: 23a860f3dc2b4bba94a7495a7a15f643b439b7d4 (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
38
# New ports collection makefile for:	xclasses
# Date created:		2000-10-01
# Whom:			Trevor Johnson <trevor@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=	xclasses
PORTVERSION=	1.3.0
CATEGORIES=	x11-toolkits
MASTER_SITES=	ftp://trier.linux.de/pub/Xclasses/
DISTNAME=	Xclasses-public-${PORTVERSION}.src

MAINTAINER=	trevor@FreeBSD.org

INSTALLS_SHLIB=	yes
PLIST_SUB=	VERSION="${PORTVERSION}"
USE_GMAKE=	yes
USE_X_PREFIX=	yes
USE_XPM=	yes
WRKSRC=		${WRKDIR}/xclasses

post-patch:
.for file in build System/ARules.FreeBSD
	@${PERL} -pi \
		-e "s|%%CXX%%|${CXX}|g;" \
		-e "s|%%CXXFLAGS%%|${CXXFLAGS}|g;" \
		-e "s|%%X11BASE%%|${X11BASE}|g;" ${WRKSRC}/${file}
.endfor

do-build:
	@cd ${WRKSRC} && ${SH} build all

do-install:
	@cd ${WRKSRC} && ${SH} build install
	@${INSTALL_SCRIPT} ${WRKSRC}/setenvxc ${PREFIX}/bin

.include <bsd.port.mk>