freebsd-ports/editors/linux-sublime3/Makefile
Tijl Coosemans 6140d3c6aa - Autodetect the installed linux_base port and use LINUX_DEFAULT only as
a last resort.
- Construct a list of DISTFILES for every architecture (amd64, i386).
  Select one list for regular make and all lists for make makesum so linux
  ports can have one combined distinfo file.
- Set DIST_SUBDIR?=centos so there's only one copy of common distfiles.
- Use MASTER_SITES and DISTFILES groups so make fetch is a bit smarter.
- Regenerate all distinfo files.
- For linux_base-c6 (just like linux_base-c7 already does) turn bin, lib,
  lib64 and sbin into symbolic links to the same directory under usr.
  This fixes the problem where some programs/libraries exist under / on
  FreeBSD and /usr on Linux or vice versa and then depending on the order
  of search paths Linux programs may run/load FreeBSD programs/libraries
  and fail.
- Turn usr/share/icons into a symbolic link to LOCALBASE/share/icons so
  Linux programs can find desktop theme icons.  This eliminates the need
  for x11-themes/linux*-hicolor-icon-theme.
- Rename pkg-plist.x86_64 to pkg-plist.amd64.
- Regenerate all pkg-plist files.
- Add @preexec to linux_base pkg-plist that moves existing files in bin,
  lib, lib64, sbin and icons to the new destination before the directories
  are turned into symbolic links.
- Remove several empty directories from linux_base ports.
- Sweep over all linux ports: use consistent style, remove old CONFLICTS,
  remove unused pkg-descr files, add NLS option,...
- Remove old linux arts, esound and openssl-compat ports.
2017-01-31 16:54:21 +00:00

45 lines
1.7 KiB
Makefile

# Created by: Miguel Clara <miguelmclara@gmail.com>
# $FreeBSD$
PORTNAME= sublime
PORTVERSION= 3.1.26
PORTREVISION= 1
CATEGORIES= editors linux
MASTER_SITES= http://download.sublimetext.com/
PKGNAMEPREFIX= linux-
PKGNAMESUFFIX= 3
DISTNAME_amd64= sublime_text_3_build_3126_x64
DISTNAME_i386= sublime_text_3_build_3126_x32
MAINTAINER= miguelmclara@gmail.com
COMMENT= Sophisticated text editor for code, markup and prose
USES= desktop-file-utils linux tar:bzip2
USE_LINUX= xorglibs gtk2
INSTALLS_ICONS= yes
WRKSRC= ${WRKDIR}/sublime_text_3
CONFLICTS_INSTALL= linux-sublime-[0-9]*
NO_BUILD=
SUB_FILES= sublime
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR} \
${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ \
${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ \
${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ \
${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/ \
${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/
${INSTALL_DATA} ${WRKSRC}/Icon/16x16/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/
${INSTALL_DATA} ${WRKSRC}/Icon/32x32/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/
${INSTALL_DATA} ${WRKSRC}/Icon/48x48/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/
${INSTALL_DATA} ${WRKSRC}/Icon/128x128/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/
${INSTALL_DATA} ${WRKSRC}/Icon/256x256/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/
${INSTALL_DATA} ${WRKSRC}/sublime_text.desktop ${STAGEDIR}${PREFIX}/share/applications/
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime
.include <bsd.port.mk>