aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/XFree86-aoutlibs/Makefile
blob: 0f668576bb4da1734656a4010e341a2e9a6edbe0 (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:    XFree86 3.3.6 aout libs
# Date created:     31 Oct 2000
# Whom:         Jing-Tang Keith Jang <keith@FreeBSD.org>
#
# $FreeBSD: /tmp/pcvs/ports/chinese/XFree86-aoutlibs/Attic/Makefile,v 1.3 2001-02-05 14:29:33 olgeni Exp $
#

# The file is identical to
# ftp://ftp.xfree86.org/pub/XFree86/3.3.6/binaries/FreeBSD-2.2.x/Xbin.tgz
# Renamed to avoid distfiles conflict with x11/XFree86-aoutlibs.

PORTNAME=   XFree86-aoutlibs
PORTVERSION=    3.3.6
CATEGORIES= x11
MASTER_SITES=   ftp://freebsd.sinica.edu.tw/pub/keith/
DISTNAME=   Xbin336aout
EXTRACT_SUFX=   .tgz

MAINTAINER= keith@FreeBSD.org

ONLY_FOR_ARCHS= i386

WRKSRC=     ${WRKDIR}/lib
NO_BUILD=   yes
PORTOBJFORMAT=  aout

USE_X_PREFIX=   yes
PKGINSTALL= ${WRKDIR}/pkg-install

pre-configure:
    @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGREQ} ${PKGNAME} INSTALL
    @${SED} -e "s;@PREFIX@;${PREFIX};g" ${FILESDIR}/INSTALL.in > ${WRKDIR}/pkg-install

pre-install:
    @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL

do-install:
    @${MKDIR} ${PREFIX}/lib/aout
    cd ${WRKSRC}; \
    for l in $$(ls lib*); do \
        ${SETENV} OBJFORMAT=${PORTOBJFORMAT} \
        ${INSTALL_PROGRAM} $$l ${PREFIX}/lib/aout; \
    done
    ${TOUCH} ${PREFIX}/lib/aout/zh-XFree86-aoutlibs-3.3.6
    ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/aout

.include <bsd.port.mk>