1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/editors/sam/Makefile
Florian Limberger 86b0628113 editors/sam: + Unix port of the sam text editor from Bell Labs.
Reviewed by: arrowd, diizzy

Differential Revision: https://reviews.freebsd.org/D38785
2023-03-04 15:30:24 +03:00

44 lines
1.4 KiB
Makefile

PORTNAME= sam
DISTVERSION= g20230103
CATEGORIES= editors
MAINTAINER= flo@purplekraken.com
COMMENT= Unix port of the Sam text editor from Plan 9
WWW= https://github.com/deadpixi/sam
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libfreetype.so:print/freetype2
USES= localbase:ldflags xorg
USE_GITHUB= yes
GH_ACCOUNT= deadpixi
GH_PROJECT= sam
GH_TAGNAME= 5d8acb3
USE_XORG= x11 xft xi xt
# Some random build system fixes
MAKE_JOBS_UNSAFE=yes
CFLAGS+= -I${LOCALBASE}/include/freetype2
do-configure:
${SED} -e 's/LDFLAGS=/LDFLAGS?=/' -e 's/CC=/CC?=/' \
${WRKSRC}/config.mk.def >${WRKSRC}/config.mk
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sam/sam ${STAGEDIR}${PREFIX}/bin
${RLN} ${STAGEDIR}${PREFIX}/bin/sam ${STAGEDIR}${PREFIX}/bin/B
${INSTALL_PROGRAM} ${WRKSRC}/samterm/samterm ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/ssam/ssam.sh ${STAGEDIR}${PREFIX}/bin/ssam
${INSTALL_MAN} ${WRKSRC}/doc/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1
${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/B.1
${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/samterm.1
${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/rsam.1
${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/sam.save.1
${INSTALL_MAN} ${WRKSRC}/doc/samrc.5 ${STAGEDIR}${PREFIX}/share/man/man5
.include <bsd.port.mk>