Lines 11-51
Link Here
|
11 |
MAINTAINER= miguelmclara@gmail.com |
11 |
MAINTAINER= miguelmclara@gmail.com |
12 |
COMMENT= Sublime Text is a sophisticated text editor for code, markup and prose |
12 |
COMMENT= Sublime Text is a sophisticated text editor for code, markup and prose |
13 |
|
13 |
|
14 |
USES= tar:bzip2 |
14 |
USES= tar:bzip2 desktop-file-utils |
15 |
INSTALLS_ICONS= yes |
15 |
INSTALLS_ICONS= yes |
16 |
WRKSRC= ${WRKDIR}/sublime_text_3 |
16 |
WRKSRC= ${WRKDIR}/sublime_text_3 |
17 |
|
17 |
|
18 |
CONFLICTS= linux-sublime-[0-24-9]* |
18 |
CONFLICTS= linux-sublime-[0-24-9]* |
19 |
|
19 |
|
20 |
NO_BUILD= |
20 |
NO_BUILD= |
21 |
STRIP= # don't strip linux binaries. |
|
|
22 |
SUB_FILES= sublime |
21 |
SUB_FILES= sublime |
23 |
|
22 |
|
24 |
USE_LINUX= yes |
23 |
USE_LINUX= yes |
25 |
USE_LINUX_APPS= xorglibs |
24 |
USE_LINUX_APPS= xorglibs gtk2 |
26 |
|
25 |
|
27 |
post-patch: |
26 |
post-patch: |
28 |
${BRANDELF} -t Linux ${WRKSRC}/sublime_text |
27 |
${BRANDELF} -t Linux ${WRKSRC}/sublime_text |
29 |
${BRANDELF} -t Linux ${WRKSRC}/plugin_host |
28 |
${BRANDELF} -t Linux ${WRKSRC}/plugin_host |
30 |
${RM} -rf ${WRKSRC}/lib |
|
|
31 |
|
29 |
|
32 |
do-install: |
30 |
do-install: |
33 |
@${MKDIR} ${STAGEDIR}${DATADIR} |
31 |
@${MKDIR} ${STAGEDIR}${DATADIR} \ |
34 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ |
32 |
${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ \ |
35 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ |
33 |
${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ \ |
36 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ |
34 |
${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ \ |
37 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/ |
35 |
${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/ \ |
38 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/ |
36 |
${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/ |
39 |
|
37 |
|
40 |
@${INSTALL_DATA} ${WRKSRC}/Icon/16x16/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ |
38 |
${INSTALL_DATA} ${WRKSRC}/Icon/16x16/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ |
41 |
@${INSTALL_DATA} ${WRKSRC}/Icon/32x32/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ |
39 |
${INSTALL_DATA} ${WRKSRC}/Icon/32x32/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ |
42 |
@${INSTALL_DATA} ${WRKSRC}/Icon/48x48/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ |
40 |
${INSTALL_DATA} ${WRKSRC}/Icon/48x48/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ |
43 |
@${INSTALL_DATA} ${WRKSRC}/Icon/128x128/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/ |
41 |
${INSTALL_DATA} ${WRKSRC}/Icon/128x128/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/ |
44 |
@${INSTALL_DATA} ${WRKSRC}/Icon/256x256/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/ |
42 |
${INSTALL_DATA} ${WRKSRC}/Icon/256x256/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/ |
45 |
@${RM} -rf ${WRKSRC}/Icon/ |
43 |
${INSTALL_DATA} ${WRKSRC}/sublime_text.desktop ${STAGEDIR}${PREFIX}/share/applications/ |
46 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} |
44 |
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} |
47 |
@${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text |
45 |
${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text |
48 |
@${CHMOD} +x ${STAGEDIR}${DATADIR}/plugin_host |
46 |
${CHMOD} +x ${STAGEDIR}${DATADIR}/plugin_host |
49 |
@${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime |
47 |
${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime |
50 |
|
48 |
|
51 |
.include <bsd.port.mk> |
49 |
.include <bsd.port.mk> |