summaryrefslogtreecommitdiff
path: root/x11-toolkits/xclasses/Makefile
blob: 665fe2be70808dcb9c230458723fdde55dd0bbf3 (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.1.0
CATEGORIES=	x11-toolkits
MASTER_SITES=	http://fsai.fh-trier.de/~schmitzj/Xclasses/arc/
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>