Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163221279
D20819.id59282.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D20819.id59282.diff
View Options
Index: sysutils/minipro/Makefile
===================================================================
--- sysutils/minipro/Makefile
+++ sysutils/minipro/Makefile
@@ -12,7 +12,7 @@
RUN_DEPENDS= bash:shells/bash
-USES= gmake pkgconfig shebangfix
+USES= compiler:c11 gmake pkgconfig shebangfix
USE_GITLAB= yes
GL_ACCOUNT= DavidGriffith
@@ -22,11 +22,6 @@
PLIST_FILES= bin/minipro \
bin/miniprohex \
man/man1/minipro.1.gz
-
-post-patch:
- @${REINPLACE_CMD} -e ' s|gcc|clang|g' \
- -e 's|share/||g' \
- ${WRKSRC}/Makefile
post-install:
@${GZIP_CMD} ${STAGEDIR}${PREFIX}/man/man1/minipro.1
Index: sysutils/minipro/files/patch-Makefile
===================================================================
--- /dev/null
+++ sysutils/minipro/files/patch-Makefile
@@ -0,0 +1,31 @@
+--- Makefile.orig 2019-02-27 06:19:06 UTC
++++ Makefile
+@@ -1,16 +1,16 @@
+ # Install Configuration
+
+ # Your C compiler
+-CC=gcc
++CC?=gcc
+ #CC=clang
+
+ # Compiler options
+-CFLAGS = -g -O0 -Wall
++CFLAGS += -g -O0 -Wall
+
+ # Normally minipro is installed to /usr/local. If you want to put it
+ # somewhere else, define that location here.
+ PREFIX ?= /usr/local
+-MANDIR ?= $(PREFIX)/share/man
++MANDIR ?= $(PREFIX)/man
+
+ # Some older releases of MacOS need some extra library flags.
+ #EXTRA_LIBS += "-framework Foundation -framework IOKit"
+@@ -58,7 +58,7 @@ OBJCOPY=objcopy
+
+ DIST_DIR = $(MINIPRO)-$(VERSION)
+ BIN_INSTDIR=$(DESTDIR)$(PREFIX)/bin
+-MAN_INSTDIR=$(DESTDIR)$(PREFIX)/share/man/man1
++MAN_INSTDIR=$(DESTDIR)$(PREFIX)/man/man1
+
+ UDEV_DIR=$(shell $(PKG_CONFIG) --define-variable=prefix=$(PREFIX) --silence-errors --variable=udevdir udev)
+ UDEV_RULES_INSTDIR=$(DESTDIR)$(UDEV_DIR)/rules.d
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 4:43 AM (2 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35347701
Default Alt Text
D20819.id59282.diff (1 KB)
Attached To
Mode
D20819: sysutils/minipro: fix build with GCC-based architectures
Attached
Detach File
Event Timeline
Log In to Comment