aboutsummaryrefslogtreecommitdiff
path: root/www/libxpg4-ns/Makefile
blob: 3f69dc6af0b452b4bf7d01433b5b6ba9878411e5 (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
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:	libxpg4-ns
# Date created:		27 February 1999
# Whom:			sada
#
# $FreeBSD$
#

PORTNAME=	libxpg4-ns
PORTVERSION= 	3.3
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_PORTS_JP} \
		http://people.FreeBSD.org/~sada/distfiles/
DISTNAME=	libxpg4-3.3

MAINTAINER=	sada@FreeBSD.ORG

INSTALLS_SHLIB=	yes

MAKE_ENV+=	OBJFORMAT=aout SHLIB_MAJOR=2 SHLIB_MINOR=0
PORTOBJFORMAT=	aout

LIBDIR=		${PREFIX}/lib/aout
SRCDIR=		/usr/src

pre-build:
.if !exists(/usr/lib/aout/c++rt0.o)
	@${CAT} ${FILESDIR}/message.nolib
	@${FALSE}
.endif

pre-install:
	${MKDIR} ${LIBDIR}

extract-from-freebsd: # only for port maintainer.
.if exists(/usr/src/lib)
	@${RM} -rf ${WRKSRC}
	@${MKDIR} ${WRKSRC}
	@tar cfC - ${SRCDIR}/lib/libc locale | tar xfC - ${WRKSRC}
	@${CP} ${SRCDIR}/lib/libxpg4/Makefile ${WRKSRC}/
.else
	@${ECHO} You should INSTALL \"src/lib\" distribution"
.endif

private-distribution: # only for port maintainer.
	@(cd ${WRKDIR}; find ${DISTNAME} -type f | ${GREP} -v 'CVS' | ${SED} -e 's;^./;;' | tar czfCT ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} . -)

.include <bsd.port.mk>