summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/flashplugin/Makefile6
-rw-r--r--www/flashplugin/files/message.nolib9
2 files changed, 15 insertions, 0 deletions
diff --git a/www/flashplugin/Makefile b/www/flashplugin/Makefile
index ee8036410b62..a455e10ffbb4 100644
--- a/www/flashplugin/Makefile
+++ b/www/flashplugin/Makefile
@@ -23,6 +23,12 @@ MAKE_ENV= OBJFORMAT=aout LIBRARY_PATH=${PREFIX}/lib/aout
PORTOBJFORMAT= aout
ALL_TARGET= libswf.so
+pre-build:
+.if !exists(/usr/lib/aout/c++rt0.o)
+ @${CAT} ${FILESDIR}/message.nolib
+ @${FALSE}
+.endif
+
do-install:
.if !defined(PACKAGE_BUILDING)
@PKG_PREFIX=${PREFIX} ${SH} ${PKGREQ} ${PKGNAME} INSTALL
diff --git a/www/flashplugin/files/message.nolib b/www/flashplugin/files/message.nolib
new file mode 100644
index 000000000000..c1d81c95e326
--- /dev/null
+++ b/www/flashplugin/files/message.nolib
@@ -0,0 +1,9 @@
+===
+You couldn't build this port for lack of aout csu library files.
+You could prepare them as:
+
+1. extract /usr/src/lib (distribution files: src/slib.??)
+2. cd /usr/src/lib/csu/i386
+3. make clean depend
+4. make all install
+===