blob: eb51b19bfa0d77bfd4e57eebd4dc10d20e3d3d22 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Created by: Matías Pizarro <matias@pizarro.net>
PORTNAME= bcompare
DISTVERSION= 4.3.7
DISTVERSIONSUFFIX= .25118
CATEGORIES= editors devel linux
MASTER_SITES= http://scootersoftware.com/
PKGNAMEPREFIX= linux-
EXTRACT_SUFX= .rpm
MAINTAINER= matias@pizarro.net
COMMENT= Compare, sync, and merge files and folders (X11)
LICENSE= SCOOTERSOFTWARE
LICENSE_NAME= Scooter Software License
LICENSE_FILE= ${FILESDIR}/LICENSE.txt
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= Upstream only supports amd64 and i386
USES= desktop-file-utils gnome linux shared-mime-info shebangfix
USE_LINUX= base:run devtools:build qt-x11:run xorglibs:run
NO_BUILD= yes
NO_WRKSUBDIR= true
DATA_FILTER= -type d -o -name *\.html -o -name *\.js -o -name *\.css -o \
-name *\.gif -o -name *\.png -o -name *\.jpg -o -name \
*\.desktop -o -name mime\.types -o -name README -o -name \
BCompare.mad -o -name RPM-GPG-KEY-scootersoftware -o -name \
scootersoftware.repo
DISTNAME_amd64= ${DISTNAME}.x86_64
DISTNAME_i386= ${DISTNAME}.i386
LIB_FILES= libQt4Pas.so.5 lib7z.so libunrar.so nosched.so
PROGRAM_FILES= BCompare bcmount32 bcmount64
SCRIPT_FILES= bcmount.sh kde_context_menu
.include <bsd.port.options.mk>
.if ${ARCH} == i386
LIBDIR= lib
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-usr_bin_bcompare_i386
PLIST_SUB+= QT4AMD64="@comment "
.elif ${ARCH} == amd64
LIBDIR= lib64
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-usr_bin_bcompare_amd64
PLIST_SUB+= QT4AMD64=""
.endif
BCLIB_SRC= ${WRKSRC}/usr/${LIBDIR}/beyondcompare
BCLIB_STG= ${STAGEDIR}${PREFIX}/lib/beyondcompare
SHEBANG_FILES= ${BCLIB_SRC}/bcmount.sh ${BCLIB_SRC}/kde_context_menu
pre-install:
${LINUXBASE}/usr/bin/gcc -Wall -fPIC -shared ${FILESDIR}/nosched.c -ldl -o ${BCLIB_SRC}/nosched.so
do-install:
# bin
(cd ${WRKSRC}/usr/bin && ${INSTALL_SCRIPT} bcompare ${STAGEDIR}${PREFIX}/bin)
# lib
(cd ${BCLIB_SRC} && ${COPYTREE_SHARE} . ${BCLIB_STG} "${DATA_FILTER}")
(cd ${BCLIB_SRC} && ${INSTALL_PROGRAM} ${PROGRAM_FILES} ${BCLIB_STG})
(cd ${BCLIB_SRC} && ${INSTALL_SCRIPT} ${SCRIPT_FILES} ${BCLIB_STG})
(cd ${BCLIB_SRC} && ${INSTALL_LIB} ${LIB_FILES} ${BCLIB_STG})
.if ${ARCH} == amd64
(cd ${BCLIB_SRC}/qt4 && ${INSTALL_LIB} $$(ls *.so.4) ${BCLIB_STG}/qt4)
.endif
(cd ${BCLIB_SRC}/ext && ${INSTALL_LIB} $$(ls *.so) ${BCLIB_STG}/ext)
${LN} -sf ${LINUXBASE}/usr/${LIBDIR}/libbz2.so.1.0.6 ${BCLIB_STG}/libbz2.so.1.0
# data
(cd ${WRKSRC}/usr/share && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share)
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps
${LN} -sf ../../../../pixmaps/bcompare.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/bcompare.png
${LN} -sf ../../../../pixmaps/bcomparefull32.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/bcompare.png
${LN} -sf ../../../../pixmaps/bcompare.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/bcompare.png
.include <bsd.port.mk>
|