diff --git a/misc/display/Makefile b/misc/display/Makefile index c32687dbf2db..f4897a389ed0 100644 --- a/misc/display/Makefile +++ b/misc/display/Makefile @@ -15,7 +15,6 @@ GNU_CONFIGURE= yes DISPLAY_PROGRAM_PREFIX?= .if empty(DISPLAY_PROGRAM_PREFIX) -NO_STAGE= yes pre-everything:: @${ECHO_MSG} "NOTE: You may set DISPLAY_PROGRAM_PREFIX to change the name of the 'display'" @${ECHO_MSG} "utility so that it does not conflict with similarly named files from" @@ -24,14 +23,10 @@ pre-everything:: CONFLICTS= ImageMagick-[0-9]* goblin-* .endif -CONFIGURE_ARGS+= --program-prefix=${DISPLAY_PROGRAM_PREFIX} -LDFLAGS+= ${STRIP} - -MAN1= ${DISPLAY_PROGRAM_PREFIX}display.1 -PLIST_FILES= bin/${DISPLAY_PROGRAM_PREFIX}display +PLIST_FILES= bin/${DISPLAY_PROGRAM_PREFIX}display man/man1/${DISPLAY_PROGRAM_PREFIX}display.1.gz do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/display ${PREFIX}/bin/${DISPLAY_PROGRAM_PREFIX}display - ${INSTALL_MAN} ${WRKSRC}/display.man ${MANPREFIX}/man/man1/${DISPLAY_PROGRAM_PREFIX}display.1 + ${INSTALL_PROGRAM} ${WRKSRC}/display ${STAGEDIR}${PREFIX}/bin/${DISPLAY_PROGRAM_PREFIX}display + ${INSTALL_MAN} ${WRKSRC}/display.man ${STAGEDIR}${MANPREFIX}/man/man1/${DISPLAY_PROGRAM_PREFIX}display.1 .include diff --git a/misc/display/files/patch-ab b/misc/display/files/patch-Makefile.in similarity index 100% rename from misc/display/files/patch-ab rename to misc/display/files/patch-Makefile.in diff --git a/misc/display/files/patch-aa b/misc/display/files/patch-display.c similarity index 56% rename from misc/display/files/patch-aa rename to misc/display/files/patch-display.c index 96f0b3feb762..f19be20822fa 100644 --- a/misc/display/files/patch-aa +++ b/misc/display/files/patch-display.c @@ -1,14 +1,17 @@ ---- display.c.orig Thu Dec 15 14:29:14 2005 -+++ display.c Thu Dec 15 14:29:58 2005 -@@ -12,6 +12,7 @@ +--- ./display.c.orig 2005-12-14 04:40:15.000000000 +0100 ++++ ./display.c 2014-03-20 01:01:07.000000000 +0100 +@@ -12,6 +12,10 @@ #include #include #include +#include ++#include ++#include ++#include #define DEFAULT_DELAY 5 #define DISPLAY_VERSION "1.2" -@@ -19,6 +20,8 @@ +@@ -19,17 +23,16 @@ static char *Command; static int Delay; @@ -17,7 +20,9 @@ char lt[128]; int ntimes; -@@ -27,9 +30,6 @@ +-main(argc, argv) ++int main(argc, argv) + int argc; char *argv[]; { int i, c; @@ -27,7 +32,7 @@ for(i = 0; i < 128; i++) { -@@ -90,7 +90,7 @@ +@@ -90,7 +93,7 @@ void display() { @@ -36,3 +41,11 @@ int ch; char *dt; time_t tnow; +@@ -133,7 +136,6 @@ + int argc; + char *argv[]; + { +- extern void usage(); + auto int argn, + delay_found; +