blob: 726227ea92191e1c43f52afd62d721ec348ed6aa (
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
|
# Created by: voisine
# $FreeBSD$
PORTNAME= firefox
PORTVERSION= 23.0
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${PORTVERSION}/linux-i686/en-US
MAINTAINER= gecko@FreeBSD.org
COMMENT= Web browser based on the browser portion of Mozilla
EXTRACT_DEPENDS=${NONEXISTENT}:${PORTSDIR}/www/linux-seamonkey:extract
CONFLICTS= linux-firefox-24.* linux-firefox-1[07].*
USE_LDCONFIG= yes
USE_BZIP2= yes
USE_LINUX_APPS= dbusglib dbuslibs alsalib alsa-plugins-oss
PREFS_FILE= ${WRKSRC}/${APP_SUBDIR}defaults/preferences/browser-prefs.js
APP_SUBDIR= browser/ # plugins, extensions
.include "${.CURDIR}/../linux-seamonkey/Makefile.common"
# XXX remove after linux_base-c6 and linux-c6-gtk2 become default
# using seamonkey gre for linux_base-f10 compat
post-extract: replace-gre
replace-gre: version-compat-check
@${ECHO_MSG} "===> GRE versions are compatible, replacing with" \
"$$(${MAKE} -V PKGNAME -C ${.CURDIR}/../linux-seamonkey)"
cd $$(${MAKE} -V WRKSRC -C ${.CURDIR}/../linux-seamonkey); \
${CP} lib* dependentlibs.list ${WRKSRC}
version-compat-check:
@${ECHO_MSG} "===> Checking GRE version is compatible with" \
"$$(${MAKE} -V PKGNAME -C ${.CURDIR}/../linux-seamonkey)"
@ff_gre_version=$$(${AWK} -F= '/Milestone/ { print $$2 }' ${WRKSRC}/platform.ini); \
sm_gre_version=$$(${AWK} -F= '/Milestone/ { print $$2 }' $$(${MAKE} -V WRKSRC -C ${.CURDIR}/../linux-seamonkey)/platform.ini); \
if [ $$ff_gre_version != $$sm_gre_version ]; then \
${ECHO_MSG} "===> GRE versions aren't compatible, aborting"; \
exit 1; \
fi
.include <bsd.port.mk>
|