summaryrefslogtreecommitdiff
path: root/x11-toolkits/xg/Makefile
blob: 1a098ae6e8656eb66a8dca27cf10fa8bd375f991 (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:	xg
# Date created:				3 December 1998
# Whom:					Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=	xg
PORTVERSION= 	1.0
CATEGORIES=	x11-toolkits
MASTER_SITES=	ftp://messners.com/code/ \
		http://www.messners.com/code/
DISTNAME=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org

REQUIRES_MOTIF=	yes
USE_X_PREFIX=	yes
MAKEFILE=	makefile
WRKSRC=		${WRKDIR}/Xg-1.0

do-install:
	@ ${INSTALL_DATA} ${WRKSRC}/src/libxg.a ${PREFIX}/lib
	@ ${MKDIR} ${PREFIX}/include/xg
	@ ${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/xg
	@ ${MKDIR} ${PREFIX}/share/examples/xg
	@ ${INSTALL_DATA} ${WRKSRC}/testsrc/* ${PREFIX}/share/examples/xg
	@ ${MV} ${PREFIX}/share/examples/xg/makefile ${PREFIX}/share/examples/xg/Makefile
	@ ${RM} ${PREFIX}/share/examples/xg/makefile.orig

post-install:
.if !defined(NOPORTDOCS)
	@ ${MKDIR} ${PREFIX}/share/doc/xg
	@ ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/xg
	@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xg
.endif

.include <bsd.port.mk>