summaryrefslogtreecommitdiff
path: root/misc/auto-multiple-choice/files/patch-Makefile
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-09-20 13:41:21 +0000
committerJohn Marino <marino@FreeBSD.org>2014-09-20 13:41:21 +0000
commit9073a291cd09c9c4ba41a10883438eee1998bcd2 (patch)
tree99133eb7be09160bd96f6479c877e9102a2e4d17 /misc/auto-multiple-choice/files/patch-Makefile
parentSwitch to USES python depends. (diff)
Add new port misc/auto-multiple-choice
PR: 181451 Submitted by: Hiroto Kagotani Auto Multiple Choice (AMC) is a piece of software that helps you to create and manage multiple choice questionnaires, with automated marking. Tests can be written in plain text or LaTeX. Automated correction and grading is performed from scans of the answer sheets using optical mark recognition.
Notes
Notes: svn path=/head/; revision=368639
Diffstat (limited to 'misc/auto-multiple-choice/files/patch-Makefile')
-rw-r--r--misc/auto-multiple-choice/files/patch-Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/misc/auto-multiple-choice/files/patch-Makefile b/misc/auto-multiple-choice/files/patch-Makefile
new file mode 100644
index 000000000000..e1f69759f447
--- /dev/null
+++ b/misc/auto-multiple-choice/files/patch-Makefile
@@ -0,0 +1,59 @@
+--- ./Makefile.orig 2013-07-28 22:22:29.000000000 +0900
++++ ./Makefile 2014-03-05 18:40:32.000000000 +0900
+@@ -51,7 +51,7 @@
+ # try to find right names for OpenCV libs
+
+ ifeq ($(GCC_OPENCV_LIBS),auto)
+-ifeq ($(shell echo 'main(){}' | gcc -xc -lopencv_core - -o /dev/null 2>/dev/null && echo "OK"),OK)
++ifeq ($(shell echo 'main(){}' | $(CC) -xc $(LDFLAGS) -lopencv_core - -o /dev/null 2>/dev/null && echo "OK"),OK)
+ GCC_OPENCV_LIBS:=-lopencv_core -lopencv_highgui -lopencv_imgproc
+ else
+ GCC_OPENCV_LIBS:=-lcv -lhighgui -lcxcore
+@@ -199,7 +199,7 @@
+ install -d -m 0755 $(USER_GROUP) $(DESTDIR)/$(MODSDIR)/perl
+ install -d -m 0755 $(USER_GROUP) $(DESTDIR)/$(MODSDIR)/exec
+ install -m 0755 $(USER_GROUP) $(MODS) $(DESTDIR)/$(MODSDIR)/perl
+- install -m 0755 $(USER_GROUP) $(BINARIES) $(DESTDIR)/$(MODSDIR)/exec
++ install -s -m 0755 $(USER_GROUP) $(BINARIES) $(DESTDIR)/$(MODSDIR)/exec
+ install -m 0644 $(USER_GROUP) $(GLADE) $(DESTDIR)/$(MODSDIR)/perl
+ install -d -m 0755 $(USER_GROUP) $(DESTDIR)/$(TEXDIR)
+ install -m 0644 $(USER_GROUP) $(STY) $(DESTDIR)/$(TEXDIR)
+@@ -209,7 +209,7 @@
+ endif
+ ifneq ($(DESKTOPDIR),)
+ install -d -m 0755 $(USER_GROUP) $(DESTDIR)/$(DESKTOPDIR)
+- install -m 0644 $(USER_GROUP) -T auto-multiple-choice.desktop $(DESTDIR)/$(DESKTOPDIR)/auto-multiple-choice.desktop
++ install -m 0644 $(USER_GROUP) auto-multiple-choice.desktop $(DESTDIR)/$(DESKTOPDIR)/auto-multiple-choice.desktop
+ endif
+ install -d -m 0755 $(USER_GROUP) $(DESTDIR)/$(BINDIR)
+ install -m 0755 $(USER_GROUP) auto-multiple-choice $(DESTDIR)/$(BINDIR)
+@@ -217,7 +217,7 @@
+ install -m 0644 $(USER_GROUP) icons/*.svg $(DESTDIR)/$(ICONSDIR)
+ ifneq ($(PIXDIR),)
+ install -d -m 0755 $(USER_GROUP) $(DESTDIR)/$(PIXDIR)
+- install -m 0644 $(USER_GROUP) -T $(MAIN_LOGO).xpm $(DESTDIR)/$(PIXDIR)/auto-multiple-choice.xpm
++ install -m 0644 $(USER_GROUP) $(MAIN_LOGO).xpm $(DESTDIR)/$(PIXDIR)/auto-multiple-choice.xpm
+ endif
+ install -d -m 0755 $(USER_GROUP) $(DESTDIR)/$(PERLDIR)/AMC
+ install -d -m 0755 $(USER_GROUP) $(DESTDIR)/$(PERLDIR)/AMC/Export
+@@ -247,7 +247,19 @@
+ chgrp -hR $(INSTALL_GROUP) $(DESTDIR)/$(DOCDIR)
+ endif
+ install -d -m 0755 $(USER_GROUP) $(DESTDIR)/$(MAN1DIR)
+- install -m 0644 $(USER_GROUP) doc/*.1 $(DESTDIR)/$(MAN1DIR)
++ for f in doc/AMC-*.1; do \
++ case $$f in \
++ *.??.1) ;; \
++ *) install -m 0644 $(USER_GROUP) $$f $(DESTDIR)/$(MAN1DIR) ;; \
++ esac; \
++ done
++ install -m 0644 $(USER_GROUP) doc/auto-multiple-choice.1 $(DESTDIR)/$(MAN1DIR)
++ mkdir -p $(DESTDIR)/$(FRMAN1DIR)
++ install -m 0644 $(USER_GROUP) doc/auto-multiple-choice.fr.1 $(DESTDIR)/$(FRMAN1DIR)/auto-multiple-choice.1
++ mkdir -p $(DESTDIR)/$(JAMAN1DIR)
++ for f in doc/*.ja.1; do \
++ iconv -f UTF-8 -t EUC-JP < $$f > $(DESTDIR)/$(JAMAN1DIR)/`expr $$f : 'doc/\(.*\).ja.1'`.1; \
++ done
+ endif
+
+ # Test