1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

x11/dmenu: Update to 4.9

- Use REINPLACE_CMD instead of patch files to respect CFLAGS, CPPFLAGS and
  LDFLAGS. Also, remove the patch file from the files directory.

Reviewed by:	krion
Approved by:	krion (mentor)
Differential Revision:	https://reviews.freebsd.org/D19396
This commit is contained in:
Mateusz Piotrowski 2019-02-28 09:30:27 +00:00
parent 88ac55d5e2
commit a341f3071f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=494138
3 changed files with 11 additions and 19 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= dmenu
PORTVERSION= 4.8
DISTVERSION= 4.9
CATEGORIES= x11
MASTER_SITES= http://dl.suckless.org/tools/ \
http://schot.a-eskwadraat.nl/files/
@ -29,6 +29,13 @@ PLIST_FILES= bin/dmenu bin/dmenu_path bin/dmenu_run bin/stest \
XINERAMA_USE= XORG=xinerama
XINERAMA_MAKE_ARGS_OFF= XINERAMAFLAGS= XINERAMALIBS=
post-configure:
@${REINPLACE_CMD} -E \
-e "s|(CFLAGS[[:space:]]*)= |\1+= |" \
-e "s|(CPPFLAGS[[:space:]]*)= |\1+= |" \
-e "s|(LDFLAGS[[:space:]]*)= |\1+= |" \
${WRKSRC}/config.mk
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dmenu \
${STAGEDIR}${PREFIX}/bin/stest

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1521227102
SHA256 (dmenu-4.8.tar.gz) = fe615a5c3607061e2106700862e82ac62a9fa1e6a7ac3d616a9c76106476db61
SIZE (dmenu-4.8.tar.gz) = 15658
TIMESTAMP = 1551305095
SHA256 (dmenu-4.9.tar.gz) = b3971f4f354476a37b2afb498693649009b201550b0c7c88e866af8132b64945
SIZE (dmenu-4.9.tar.gz) = 15972

View File

@ -1,15 +0,0 @@
--- config.mk.orig 2018-03-16 19:56:18 UTC
+++ config.mk
@@ -23,9 +23,9 @@ INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = -s ${LIBS}
+CPPFLAGS+= -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CFLAGS += -std=c99 ${INCS} ${CPPFLAGS}
+LDFLAGS += ${LIBS}
# compiler and linker
CC = cc