# $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