blob: 79ba97bc4ab160c9d4b602fe3723a567b3689913 (
plain)
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
48
49
|
# $NetBSD: Makefile.plain,v 1.1 2007/08/23 22:22:07 jlam Exp $
.if ${EMUL_PLATFORM} == "freebsd-i386"
ONLY_FOR_PLATFORM+= FreeBSD-*-i386
EXTRACT_SUFX= .tar.bz2
OPERA_ARCH= .i386.freebsd
OPERA_DIR= unix/freebsd/${OPERA_PKG_VERSION_DIR}/final/${OPERA_LANG}/static
OPERA_DIST_VERSION= ${OPERA_PKG_VERSION:C/u.*//}-${OPERA_VER_DATE}.1-static-qt
WRKSRC= ${WRKDIR}/opera-${OPERA_DIST_VERSION}${OPERA_ARCH}-${OPERA_LANG}-655
OWN_DIRS= ${PREFIX}/share/opera/plugins
.elif ${EMUL_PLATFORM} == "solaris-sparc"
ONLY_FOR_PLATFORM+= SunOS-*-sparc*
EXTRACT_SUFX= .tar.bz2
SOLARIS_VERSION_REQD= 8
OPERA_ARCH= -sol8-sparc
OPERA_DIR= unix/solaris/${OPERA_PKG_VERSION_DIR}/final/${OPERA_LANG}/sparc/static
OPERA_DIST_VERSION= ${OPERA_PKG_VERSION:C/u.*//}-${OPERA_VER_DATE}.1-static-qt
WRKSRC= ${WRKDIR}/opera-${OPERA_DIST_VERSION}${OPERA_ARCH}-${OPERA_LANG}-655
BUILD_DEFS+= INSTALL_ETC_OPERARC
INSTALL_ETC_OPERARC?= no
OWN_DIRS= ${PREFIX}/lib/opera/plugins
. if !empty(INSTALL_ETC_OPERARC:M[yY][eE][sS])
CONF_FILES+= ${PREFIX}/share/opera/config/opera6rc \
/etc/opera6rc
CONF_FILES+= ${PREFIX}/share/opera/config/opera6rc.fixed \
/etc/opera6rc.fixed
. endif
.endif
SUBST_CLASSES+= opera
SUBST_STAGE.opera= post-build
SUBST_FILES.opera= man/opera.1
SUBST_SED.opera= -e 's,/usr/,${PREFIX}/,g'
do-install:
@(${ECHO} "n"; ${ECHO} "n") > ${WRKSRC}/inst.cmd
@cd ${WRKSRC} && ${CAT} ${WRKSRC}/inst.cmd | \
./install.sh --prefix=${PREFIX:Q}
@${ECHO} "=> You can ignore any previous lines about opera6rc"
@${ECHO}
post-install:
@${INSTALL_MAN} ${WRKSRC}/man/opera.1 ${PREFIX}/${PKGMANDIR}/man1
|