aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2018-02-02 12:06:07 +0800
committertobik <tobik@FreeBSD.org>2018-02-02 12:06:07 +0800
commitd2c401f0be4a79aafa22d311cb45a9c078daef1b (patch)
tree57c016d897bcb3b63a0799129e1b686ea4b46a13 /misc
parentcbe0b672435eab6ed9ef3e3fac469f737ddb659f (diff)
downloadfreebsd-ports-gnome-d2c401f0be4a79aafa22d311cb45a9c078daef1b.tar.gz
freebsd-ports-gnome-d2c401f0be4a79aafa22d311cb45a9c078daef1b.tar.zst
freebsd-ports-gnome-d2c401f0be4a79aafa22d311cb45a9c078daef1b.zip
misc/sent: Update to 1
Changes: https://git.suckless.org/sent/log/?h=1 PR: 225607 Submitted by: Mateusz Piotrowski <mpp302@gmail.com> (based on) Approved by: Neel Chauhan <neel@neelc.org> (maintainer)
Diffstat (limited to 'misc')
-rw-r--r--misc/sent/Makefile36
-rw-r--r--misc/sent/distinfo6
-rw-r--r--misc/sent/files/patch-config.mk22
3 files changed, 36 insertions, 28 deletions
diff --git a/misc/sent/Makefile b/misc/sent/Makefile
index 764a0eda7c90..755b99f9d828 100644
--- a/misc/sent/Makefile
+++ b/misc/sent/Makefile
@@ -1,29 +1,43 @@
# $FreeBSD$
PORTNAME= sent
-PORTVERSION= 0.2
+PORTVERSION= 1
CATEGORIES= misc
MASTER_SITES= http://dl.suckless.org/tools/
MAINTAINER= neel@neelc.org
COMMENT= Simple plaintext presentation tool
-LICENSE= MIT
+LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
-LIB_DEPENDS= libpng.so:graphics/png\
- libfontconfig.so:x11-fonts/fontconfig
+LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig
+RUN_DEPENDS= 2ff:graphics/farbfeld
USE_XORG= x11 xft
-ALL_TARGET= ${PORTNAME}
+MAKE_ARGS= CC="${CC}" PREFIX="${PREFIX}" MANPREFIX="${MANPREFIX}/man" \
+ X11INC="${LOCALBASE}/include" X11LIB="${LOCALBASE}/lib"
+NO_WRKSUBDIR= yes
-PLIST_FILES= bin/${PORTNAME} ${EXAMPLESDIR}/example ${EXAMPLESDIR}/nyan.png
+PLIST_FILES= bin/sent \
+ man/man1/sent.1.gz
+PORTDOCS= README.md
+PORTEXAMPLES= example \
+ nyan.png \
+ transparent_test.ff
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sent ${STAGEDIR}${PREFIX}/bin
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/example ${STAGEDIR}${EXAMPLESDIR}/example
- ${INSTALL_DATA} ${WRKSRC}/nyan.png ${STAGEDIR}${EXAMPLESDIR}/nyan.png
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sent
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/misc/sent/distinfo b/misc/sent/distinfo
index b692513f41c6..6f6ebdb47fb0 100644
--- a/misc/sent/distinfo
+++ b/misc/sent/distinfo
@@ -1,3 +1,3 @@
-SHA256 (sent-0.2.tar.gz) = 53b961f9d92a277a6408df7025b4a6deae6b655a797383c93442290e45391076
-SIZE (sent-0.2.tar.gz) = 13479
-TIMESTAMP = 1463240986
+TIMESTAMP = 1517451687
+SHA256 (sent-1.tar.gz) = 7bf3de9311ce291ff36adf5315b78fa72373e3ab80ca71387fb5884bcbd7be33
+SIZE (sent-1.tar.gz) = 15285
diff --git a/misc/sent/files/patch-config.mk b/misc/sent/files/patch-config.mk
index 65ce951e1472..55ff454deca7 100644
--- a/misc/sent/files/patch-config.mk
+++ b/misc/sent/files/patch-config.mk
@@ -1,19 +1,13 @@
---- config.mk.orig 2015-11-19 18:37:08 UTC
+--- config.mk.orig 2018-02-01 17:23:54 UTC
+++ config.mk
-@@ -7,12 +7,12 @@ VERSION = 0.2
- PREFIX = /usr/local
- MANPREFIX = ${PREFIX}/share/man
-
--X11INC = /usr/X11R6/include
--X11LIB = /usr/X11R6/lib
-+X11INC = /usr/local/X11R6/include
-+X11LIB = /usr/local/X11R6/lib
-
- # includes and libs
--INCS = -I. -I/usr/include -I/usr/include/freetype2 -I${X11INC}
--LIBS = -L/usr/lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11 -lpng
+@@ -16,8 +16,8 @@ LIBS = -L/usr/lib -lc -lm -L${X11LIB} -lXft -lfontconf
+ # OpenBSD (uncomment)
+ #INCS = -I. -I${X11INC} -I${X11INC}/freetype2
+ # FreeBSD (uncomment)
+-#INCS = -I. -I/usr/local/include -I/usr/local/include/freetype2 -I${X11INC}
+-#LIBS = -L/usr/local/lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11
+INCS = -I. -I/usr/local/include -I/usr/local/include/freetype2 -I${X11INC}
-+LIBS = -L/usr/local/lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11 -lpng
++LIBS = -L/usr/local/lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_XOPEN_SOURCE=600